mirror of https://git.ffmpeg.org/ffmpeg.git
ffmpeg: Fix bitstream filters manipulating AVCodecContext
Fixes Ticket3715 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0a7ad6bf51
commit
10012fa961
2
ffmpeg.c
2
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)
|
static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost)
|
||||||
{
|
{
|
||||||
AVBitStreamFilterContext *bsfc = ost->bitstream_filters;
|
AVBitStreamFilterContext *bsfc = ost->bitstream_filters;
|
||||||
AVCodecContext *avctx = ost->enc_ctx;
|
AVCodecContext *avctx = ost->st->codec;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if ((avctx->codec_type == AVMEDIA_TYPE_VIDEO && video_sync_method == VSYNC_DROP) ||
|
if ((avctx->codec_type == AVMEDIA_TYPE_VIDEO && video_sync_method == VSYNC_DROP) ||
|
||||||
|
|
Loading…
Reference in New Issue