Certain decoder has been found to not choose a format automatically. Running
v4l2videodec on these would assert. This patch will make it fail cleanly
instead.
break;
default:
format = GST_VIDEO_FORMAT_UNKNOWN;
- g_assert_not_reached ();
break;
}
/* No need to care about mplane, the four first params are the same */
format = gst_v4l2_object_v4l2fourcc_to_video_format (fmt.fmt.pix.pixelformat);
- /* FIXME do more work in the whole function if
- * format is GST_VIDEO_FORMAT_ENCODED
- * Also gst_v4l2_object_v4l2fourcc_to_video_format should be improved
- * because for now it never returns GST_VIDEO_FORMAT_ENCODED
- */
-
/* fails if we do no translate the fmt.pix.pixelformat to GstVideoFormat */
if (format == GST_VIDEO_FORMAT_UNKNOWN)
goto unsupported_format;