mirror of https://github.com/FFmpeg/FFmpeg.git
Up until now, avformat_find_stream_info had a potential for memleaks: When everything was fine, it read packets and (depending upon whether AVFMT_FLAG_NOBUFFER was set) put them in a packet list or unreferenced them when they were no longer needed. But upon failure, said packets would leak if they were not already on the packet list. This patch fixes this. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>pull/323/head
parent
47a4528abc
commit
bf79e4426a
1 changed files with 7 additions and 3 deletions
Loading…
Reference in new issue