mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21: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,11 +1136,11 @@ picture_changed (GstFFMpegVidDec * ffmpegdec, AVFrame * picture,
|
|||
if (picture->repeat_pict)
|
||||
pic_field_order |= GST_VIDEO_BUFFER_FLAG_RFF;
|
||||
#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 if (picture->top_field_first) {
|
||||
if (picture->top_field_first)
|
||||
#endif
|
||||
pic_field_order |= GST_VIDEO_BUFFER_FLAG_TFF;
|
||||
pic_field_order |= GST_VIDEO_BUFFER_FLAG_TFF;
|
||||
}
|
||||
|
||||
return !(ffmpegdec->pic_width == picture->width
|
||||
|
|
Loading…
Reference in a new issue