mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
mpegvideoparse: check for same TSN only for interlaced streams (fixes unit test)
https://bugzilla.gnome.org/show_bug.cgi?id=711721
This commit is contained in:
parent
430175f3c9
commit
4930dc40cd
1 changed files with 3 additions and 1 deletions
|
@ -544,7 +544,9 @@ gst_mpegv_parse_process_sc (GstMpegvParse * mpvparse,
|
||||||
/* if terminating packet is a picture, we need to check if it has same TSN as the picture that is being
|
/* if terminating packet is a picture, we need to check if it has same TSN as the picture that is being
|
||||||
terminated. If it does, we need to keep those together, as these packets are two fields of the same
|
terminated. If it does, we need to keep those together, as these packets are two fields of the same
|
||||||
frame */
|
frame */
|
||||||
if (packet->type == GST_MPEG_VIDEO_PACKET_PICTURE) {
|
if (packet->type == GST_MPEG_VIDEO_PACKET_PICTURE
|
||||||
|
&& (mpvparse->config_flags & FLAG_SEQUENCE_EXT)
|
||||||
|
&& !mpvparse->sequenceext.progressive) {
|
||||||
if (info->size - off < 2) { /* we need at least two bytes to read the TSN */
|
if (info->size - off < 2) { /* we need at least two bytes to read the TSN */
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue