Fix crash when playing MJPEG movies (recent regression)