Guest User

Untitled

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