mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
mpegvideoparse: tweak extension handling
This commit is contained in:
parent
b57981d15b
commit
a3d658915b
1 changed files with 8 additions and 3 deletions
|
@ -501,9 +501,14 @@ gst_mpegv_parse_process_sc (GstMpegvParse * mpvparse,
|
||||||
break;
|
break;
|
||||||
case GST_MPEG_VIDEO_PACKET_EXTENSION:
|
case GST_MPEG_VIDEO_PACKET_EXTENSION:
|
||||||
GST_LOG_OBJECT (mpvparse, "startcode is VIDEO PACKET EXTENSION");
|
GST_LOG_OBJECT (mpvparse, "startcode is VIDEO PACKET EXTENSION");
|
||||||
parse_packet_extension (mpvparse, info, off);
|
if (mpvparse->pic_offset >= 0) {
|
||||||
if (mpvparse->ext_count < G_N_ELEMENTS (mpvparse->ext_offsets))
|
GST_LOG_OBJECT (mpvparse, "... considered PICTURE EXTENSION");
|
||||||
mpvparse->ext_offsets[mpvparse->ext_count++] = off;
|
parse_packet_extension (mpvparse, info, off);
|
||||||
|
} else {
|
||||||
|
GST_LOG_OBJECT (mpvparse, "... considered SEQUENCE EXTENSION");
|
||||||
|
if (mpvparse->ext_count < G_N_ELEMENTS (mpvparse->ext_offsets))
|
||||||
|
mpvparse->ext_offsets[mpvparse->ext_count++] = off;
|
||||||
|
}
|
||||||
checkconfig = FALSE;
|
checkconfig = FALSE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue