matroska: default prores fourcc apcn
If there is no codec private data for prores it should default to Apple ProRes 422 Standard Definition (apcn). Can be tested with strobe_scientist.mkv from https://developers.google.com/media/vp9/hdr-encoding Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1734>
This commit is contained in:
parent
53ed876002
commit
e61e069189
@ -6643,16 +6643,16 @@ gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext *
|
|||||||
}
|
}
|
||||||
*codec_name = g_strdup_printf ("FFMpeg v1");
|
*codec_name = g_strdup_printf ("FFMpeg v1");
|
||||||
} else if (!strcmp (codec_id, GST_MATROSKA_CODEC_ID_VIDEO_PRORES)) {
|
} else if (!strcmp (codec_id, GST_MATROSKA_CODEC_ID_VIDEO_PRORES)) {
|
||||||
guint32 fourcc;
|
guint32 fourcc = 0;
|
||||||
const gchar *variant, *variant_descr = "";
|
const gchar *variant, *variant_descr = "";
|
||||||
|
|
||||||
/* Expect a fourcc in the codec private data */
|
/* Expect a fourcc in the codec private data */
|
||||||
if (!data || size < 4) {
|
if (data && size >= 4) {
|
||||||
GST_WARNING ("No or too small PRORESS fourcc (%d bytes)", size);
|
fourcc = GST_STR_FOURCC (data);
|
||||||
return NULL;
|
} else {
|
||||||
|
GST_DEBUG ("Picking apcn variant because no ProRes codec data found");
|
||||||
}
|
}
|
||||||
|
|
||||||
fourcc = GST_STR_FOURCC (data);
|
|
||||||
switch (fourcc) {
|
switch (fourcc) {
|
||||||
case GST_MAKE_FOURCC ('a', 'p', 'c', 's'):
|
case GST_MAKE_FOURCC ('a', 'p', 'c', 's'):
|
||||||
variant_descr = " 4:2:2 LT";
|
variant_descr = " 4:2:2 LT";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user