ext/ffmpeg/gstffmpegcodecmap.c: don't operate on undefined variables (fixes #135145)

Original commit message from CVS:
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_caps_with_codecid):
don't operate on undefined variables (fixes #135145)
This commit is contained in:
Benjamin Otte 2004-05-18 01:15:36 +00:00
parent 2f2827a890
commit bf808bd484
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-05-18 Benjamin Otte <in7y118@public.uni-hamburg.de>
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_caps_with_codecid):
don't operate on undefined variables (fixes #135145)
2004-05-16 Benjamin Otte <otte@gnome.org>
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_chain):

View file

@ -1150,9 +1150,9 @@ gst_ffmpeg_caps_with_codecid (enum CodecID codec_id,
const GstBuffer *buf;
if ((value = gst_structure_get_value (str, "codec_data"))) {
buf = g_value_get_boxed (value);
if (GST_BUFFER_SIZE (buf) != 0)
{
buf = g_value_get_boxed (value);
context->extradata = av_mallocz (GST_BUFFER_SIZE (buf));
memcpy (context->extradata, GST_BUFFER_DATA (buf),
GST_BUFFER_SIZE (buf));