aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-21 03:04:41 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-19 03:51:37 +0100
commit462c1dacaef7167927318ca0031175e5a744cef9 (patch)
tree59643cdbafeb4578713714f3eb21146ec4772c1f
parent9c3d81481798933a0e4c3a85baaab15f05803cb0 (diff)
downloadffmpeg-462c1dacaef7167927318ca0031175e5a744cef9.tar.gz
ffmpeg: Use correct codec_id for av_parser_change() check
No testcase known Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 45f3d4e63e7807ff3d281f269625ed83f11e4cdc) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--ffmpeg.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index a3d000443b..b0cf42916d 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1767,12 +1767,11 @@ static void do_streamcopy(InputStream *ist, OutputStream *ost, const AVPacket *p
opkt.duration = av_rescale_q(pkt->duration, ist->st->time_base, ost->st->time_base);
opkt.flags = pkt->flags;
-
// FIXME remove the following 2 lines they shall be replaced by the bitstream filters
- if ( ost->enc_ctx->codec_id != AV_CODEC_ID_H264
- && ost->enc_ctx->codec_id != AV_CODEC_ID_MPEG1VIDEO
- && ost->enc_ctx->codec_id != AV_CODEC_ID_MPEG2VIDEO
- && ost->enc_ctx->codec_id != AV_CODEC_ID_VC1
+ if ( ost->st->codec->codec_id != AV_CODEC_ID_H264
+ && ost->st->codec->codec_id != AV_CODEC_ID_MPEG1VIDEO
+ && ost->st->codec->codec_id != AV_CODEC_ID_MPEG2VIDEO
+ && ost->st->codec->codec_id != AV_CODEC_ID_VC1
) {
int ret = av_parser_change(ost->parser, ost->st->codec,
&opkt.data, &opkt.size,