ffmpeg: Fix bitstream filters manipulating AVCodecContext
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Jun 2014 22:50:50 +0000 (00:50 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Jun 2014 22:50:50 +0000 (00:50 +0200)
Fixes Ticket3715

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 49e5596..14b4f21 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -575,7 +575,7 @@ static void close_all_output_streams(OutputStream *ost, OSTFinished this_stream,
 static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost)
 {
     AVBitStreamFilterContext *bsfc = ost->bitstream_filters;
-    AVCodecContext          *avctx = ost->enc_ctx;
+    AVCodecContext          *avctx = ost->st->codec;
     int ret;
 
     if ((avctx->codec_type == AVMEDIA_TYPE_VIDEO && video_sync_method == VSYNC_DROP) ||