Original commit message from CVS:
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_getcaps):
Don't crash if avcodec_open failed (#301717).
+2005-04-23 Luca Ognibene <luogni@tin.it>
+
+ Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
+
+ * ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_getcaps):
+ Don't crash if avcodec_open failed (#301717).
+
2005-04-21 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_register):
caps = gst_caps_new_empty ();
gst_caps_append (caps,
gst_ffmpeg_codectype_to_caps (oclass->in_plugin->type, ctx));
+ avcodec_close (ctx);
}
- /* FIXME: ffmpeg likes to crash on this */
- avcodec_close (ctx);
}
av_free (ctx);