[FFmpeg-devel] Calling av_find_stream_info multiple times crashes
michaelni at gmx.at
Wed Jul 20 10:33:19 CEST 2011
On Thu, Jul 07, 2011 at 09:34:31AM +0100, Gavin Kinsey wrote:
> Due to the change in commit fd0368e7ca35e2feaf7960564e61a76655c4d1f6 calling
> av_find_stream_info multiple times on the same AVFormatContext now causes a
> Previously the info struct was being realllocated on each call, but now it
> is freed at the end of av_find_stream_info and never allocated again. Not
> sure how to solve this without causing a leak. But a leak is better than a
> crash IMO.
I dont think fixing a year old bug by introducing a leak is a good idea
If its a matter of missing allocation, then just add that allocation
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I have often repented speaking, but never of holding my tongue.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel