http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/173602 A leak was reproducible before af09be4f with the following command: $ valgrind ffmpeg -i SubTitleHD.ts -map 0:#0x1580 -scodec dvdsub foo.mkv