mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-01 09:27:44 +00:00
ffmpeg.c: check for interlaced flag in the correct place.
In the corresponding codec context, not global options storage.
This commit is contained in:
parent
994de197c0
commit
648e55ff1b
1 changed files with 1 additions and 1 deletions
2
ffmpeg.c
2
ffmpeg.c
|
@ -1186,7 +1186,7 @@ static void do_video_out(AVFormatContext *s,
|
|||
/* better than nothing: use input picture interlaced
|
||||
settings */
|
||||
big_picture.interlaced_frame = in_picture->interlaced_frame;
|
||||
if(avcodec_opts[AVMEDIA_TYPE_VIDEO]->flags & (CODEC_FLAG_INTERLACED_DCT|CODEC_FLAG_INTERLACED_ME)){
|
||||
if (ost->st->codec->flags & (CODEC_FLAG_INTERLACED_DCT|CODEC_FLAG_INTERLACED_ME)) {
|
||||
if(top_field_first == -1)
|
||||
big_picture.top_field_first = in_picture->top_field_first;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue