Commit bf808bd4 authored by Benjamin Otte's avatar Benjamin Otte

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)
parent 2f2827a8
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> 2004-05-16 Benjamin Otte <otte@gnome.org>
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_chain): * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_chain):
......
...@@ -1150,9 +1150,9 @@ gst_ffmpeg_caps_with_codecid (enum CodecID codec_id, ...@@ -1150,9 +1150,9 @@ gst_ffmpeg_caps_with_codecid (enum CodecID codec_id,
const GstBuffer *buf; const GstBuffer *buf;
if ((value = gst_structure_get_value (str, "codec_data"))) { if ((value = gst_structure_get_value (str, "codec_data"))) {
buf = g_value_get_boxed (value);
if (GST_BUFFER_SIZE (buf) != 0) if (GST_BUFFER_SIZE (buf) != 0)
{ {
buf = g_value_get_boxed (value);
context->extradata = av_mallocz (GST_BUFFER_SIZE (buf)); context->extradata = av_mallocz (GST_BUFFER_SIZE (buf));
memcpy (context->extradata, GST_BUFFER_DATA (buf), memcpy (context->extradata, GST_BUFFER_DATA (buf),
GST_BUFFER_SIZE (buf)); GST_BUFFER_SIZE (buf));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment