mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
ext/ffmpeg/gstffmpegenc.c: Don't crash if avcodec_open failed (#301717).
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).
This commit is contained in:
parent
fd7b68e150
commit
3d55f87758
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
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>
|
2005-04-21 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_register):
|
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_register):
|
||||||
|
|
|
@ -331,10 +331,9 @@ gst_ffmpegenc_getcaps (GstPad * pad)
|
||||||
caps = gst_caps_new_empty ();
|
caps = gst_caps_new_empty ();
|
||||||
gst_caps_append (caps,
|
gst_caps_append (caps,
|
||||||
gst_ffmpeg_codectype_to_caps (oclass->in_plugin->type, ctx));
|
gst_ffmpeg_codectype_to_caps (oclass->in_plugin->type, ctx));
|
||||||
}
|
|
||||||
/* FIXME: ffmpeg likes to crash on this */
|
|
||||||
avcodec_close (ctx);
|
avcodec_close (ctx);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
av_free (ctx);
|
av_free (ctx);
|
||||||
|
|
||||||
/* make sure we have something */
|
/* make sure we have something */
|
||||||
|
|
Loading…
Reference in a new issue