[FFmpeg-devel] [CRASH]

Etienne Buira etienne.buira.lists at free.fr
Tue Jun 7 15:20:42 CEST 2011


On Tue, Jun 07, 2011 at 01:14:46PM +0100, JULIAN GARDNER wrote:
> 
> Since last nights git pull i have been getting a crash (see error dump at end) at then end of encoding with the following command line
> 
> ./ffmpeg -i Lie.avi -i Lie.srt -vcodec libx264 -scodec ass -f mpegts -y a.ts
> 
> But if i remove the "-vcodec libx264" everything works fine.
> #7  0x086d88a2 in av_free (arg=0x8e9e144) at libavutil/mem.c:152
> #8  av_freep (arg=0x8e9e144) at libavutil/mem.c:159
> #9  0x086d8b87 in av_opt_free (obj=0x400) at libavutil/opt.c:528
> #10 0x0806d9ee in avcodec_close (avctx=0x8e9d900) at libavcodec/utils.c:862
> #11 0x08088e71 in transcode (nb_output_files=<value optimized out>, input_files=<value optimized out>,
>     nb_input_files=<value optimized out>, stream_maps=0x0, nb_stream_maps=0, output_files=<value optimized out>) at ffmpeg.c:2893
> #12 0x08089f8c in main (argc=17, argv=0xbffff704) at ffmpeg.c:4663
> (gdb)

Please try attached patch.
-------------- next part --------------
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index b0cca65..1b6f55f 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -170,14 +170,6 @@ static av_cold int X264_close(AVCodecContext *avctx)
     if (x4->enc)
         x264_encoder_close(x4->enc);
 
-    av_free(x4->preset);
-    av_free(x4->tune);
-    av_free(x4->profile);
-    av_free(x4->level);
-    av_free(x4->stats);
-    av_free(x4->weightp);
-    av_free(x4->x264opts);
-
     return 0;
 }
 


More information about the ffmpeg-devel mailing list