[Ffmpeg-devel] cvs regression, or what do I do wrong?

Michael Niedermayer michaelni
Wed Jul 27 19:12:11 CEST 2005


Hi

On Wednesday 27 July 2005 12:43, Zoltan NAGY wrote:
> Hello!
>
> I put a very little demonstrational app to here:
> http://nefty.hu/~nagyz/ffmpeg_test.c
>
> after compiliation I try to use it:
> debian:~/devel# ./test /opt/mmsys/videos/17_redbull.mpg
> /opt/mmsys/videos/20_wauto.mpg
> nsv_probe(), buf_size 2048
> Input #0, mpeg, from '/opt/mmsys/videos/17_redbull.mpg':
>   Duration: 00:00:06.1, start: 0.474589, bitrate: 8213 kb/s
>   Stream #0.0: Video: mpeg2video, 640x480, 25.00 fps
> nsv_probe(), buf_size 2048
> Input #0, mpegvideo, from '/opt/mmsys/videos/20_wauto.mpg':
>   Duration: N/A, bitrate: N/A
>   Stream #0.0: Video: mpeg2video, 352x240, 25.00 fps
> [mpeg2video @ 0x402e9008]ac-tex damaged at 0 0
> Segmentation fault
> debian:~/devel#
>
> however, if I remove the call av_free_static() from my code, it works
> perfectly...
>
> av_free_static() is also in ffmpeg.c, so I think I should want to use it
> as well.
>
> I've tracked back the cvs, and this does not happen with version from
> 2004 november 27,
> but it does happen afterwards (from 28 going on)..
>
> any ideas?
> it is a regression, or what do I do wrong?

av_free_static() can currently only be called directly before exiting, feel 
free to fix this if you care, and IIRC in the past it simply freed nothing at 
all, thats probably why theres no crash on old versions

[...]
-- 
Michael





More information about the ffmpeg-devel mailing list