Browse code

ffmpeg.c: check for interlaced flag in the correct place.

In the corresponding codec context, not global options storage.

Anton Khirnov authored on 2011/05/07 00:59:15
Showing 1 changed files
... ...
@@ -1186,7 +1186,7 @@ static void do_video_out(AVFormatContext *s,
1186 1186
             /* better than nothing: use input picture interlaced
1187 1187
                settings */
1188 1188
             big_picture.interlaced_frame = in_picture->interlaced_frame;
1189
-            if(avcodec_opts[AVMEDIA_TYPE_VIDEO]->flags & (CODEC_FLAG_INTERLACED_DCT|CODEC_FLAG_INTERLACED_ME)){
1189
+            if (ost->st->codec->flags & (CODEC_FLAG_INTERLACED_DCT|CODEC_FLAG_INTERLACED_ME)) {
1190 1190
                 if(top_field_first == -1)
1191 1191
                     big_picture.top_field_first = in_picture->top_field_first;
1192 1192
                 else