ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Fri Apr 1 18:50:45 2016 +0200| [9f03b85045fd8fb776502ea4d5e17a42fb37bf04] | committer: Michael Niedermayer
avcodec/parser: assert that the codec id is not NONE in av_parser_parse2() Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9f03b85045fd8fb776502ea4d5e17a42fb37bf04 --- libavcodec/parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/parser.c b/libavcodec/parser.c index d25d261..2c8fc69 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -141,6 +141,8 @@ int av_parser_parse2(AVCodecParserContext *s, AVCodecContext *avctx, int index, i; uint8_t dummy_buf[AV_INPUT_BUFFER_PADDING_SIZE]; + av_assert1(avctx->codec_id != AV_CODEC_ID_NONE); + /* Parsers only work for the specified codec ids. */ av_assert1(avctx->codec_id == s->parser->codec_ids[0] || avctx->codec_id == s->parser->codec_ids[1] || _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog