mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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:
parent
2f2827a890
commit
bf808bd484
2 changed files with 6 additions and 1 deletions
|
@ -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):
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue