OSDN Git Service

ffmpeg: fix memleak of bitstream filter context on failure
authorJames Almer <jamrial@gmail.com>
Sat, 24 Sep 2016 18:03:42 +0000 (15:03 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 25 Sep 2016 19:17:59 +0000 (16:17 -0300)
commit449dc25f56fa1a84285e0f972849c4c40896807b
treeeb568e3032cb6e66b8e8a6073fca31c67988d642
parent3ac76d76185114bdfade3156a72ff97a65488adf
ffmpeg: fix memleak of bitstream filter context on failure

Increase the nb_bitstream_filters value as soon as the context is allocated, so
if option parsing fails the last context is actually freed.

Reviewed-by: Josh de Kock <josh@itanimul.li>
Signed-off-by: James Almer <jamrial@gmail.com>
ffmpeg_opt.c