Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit e14debb2c2adedb16aa6b06d6d7b1e5e32c472fe
- Author: Aman Gupta <[email protected]>
- Date: Wed Jul 18 11:22:20 2018 -0700
- avcodec: fix parsing of AVCodec definition with multiple bitstream filters
- Off-by-one in the parser would throw errors when multiple bsfs were used.
- > A non-existing bitstream filter requested by a decoder. This is a bug, please report it.
- Signed-off-by: Aman Gupta <[email protected]>
- diff --git a/libavcodec/decode.c b/libavcodec/decode.c
- index 6a3a4df179..91d809d742 100644
- --- a/libavcodec/decode.c
- +++ b/libavcodec/decode.c
- @@ -197,6 +197,9 @@ static int bsfs_init(AVCodecContext *avctx)
- const AVBitStreamFilter *filter;
- char *bsf;
- + if (*bsfs_str == ',')
- + bsfs_str++;
- +
- bsf = av_get_token(&bsfs_str, ",");
- if (!bsf) {
- ret = AVERROR(ENOMEM);
Advertisement
Add Comment
Please, Sign In to add comment