Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-05-06 19:59:15 +0400
committerAnton Khirnov <anton@khirnov.net>2011-05-08 12:43:24 +0400
commit648e55ff1beea72b53f8fb231b3ef0fb16cd3e62 (patch)
tree270ddabb658f2e46805f0ffd011462ece534e0cc /ffmpeg.c
parent994de197c0d5dcf38d5ab68f8f03f37a890a4458 (diff)
ffmpeg.c: check for interlaced flag in the correct place.
In the corresponding codec context, not global options storage.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index c5868110f2..2540a2e725 100644
--- a/ffmpeg.c
+++ b/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