mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 13:11:06 +00:00
avviddec: Fix interlaced mode detection
Fixing regression introduced by the commit b46559102b
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6297>
This commit is contained in:
parent
0d1a0cec5e
commit
3a727fde2c
1 changed files with 3 additions and 3 deletions
|
@ -1136,9 +1136,9 @@ picture_changed (GstFFMpegVidDec * ffmpegdec, AVFrame * picture,
|
||||||
if (picture->repeat_pict)
|
if (picture->repeat_pict)
|
||||||
pic_field_order |= GST_VIDEO_BUFFER_FLAG_RFF;
|
pic_field_order |= GST_VIDEO_BUFFER_FLAG_RFF;
|
||||||
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(60, 31, 100)
|
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(60, 31, 100)
|
||||||
} else if (picture->flags & AV_FRAME_FLAG_TOP_FIELD_FIRST) {
|
if (picture->flags & AV_FRAME_FLAG_TOP_FIELD_FIRST)
|
||||||
#else
|
#else
|
||||||
} else if (picture->top_field_first) {
|
if (picture->top_field_first)
|
||||||
#endif
|
#endif
|
||||||
pic_field_order |= GST_VIDEO_BUFFER_FLAG_TFF;
|
pic_field_order |= GST_VIDEO_BUFFER_FLAG_TFF;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue