summaryrefslogtreecommitdiff
path: root/ext/cog
diff options
context:
space:
mode:
authorJonathan Rosser <jonathan.rosser@rd.bbc.co.uk>2010-09-05 15:34:13 -0700
committerDavid Schleef <ds@schleef.org>2010-09-05 15:37:17 -0700
commit62ae33d3d6e4cbfdaaf1a746a6626ff85bde7c99 (patch)
tree75b3b1da4351249fbc02935f8a7136fd1a140d61 /ext/cog
parenteea40e46e265a0c0c8e54972d664cf65893894bc (diff)
downloadgstreamer-plugins-bad-62ae33d3d6e4cbfdaaf1a746a6626ff85bde7c99.tar.gz
cog: Fix cog_virt_frame_new_convert_u8()
Conversion was using uninitialized data instead of source frame. Fixes #626425.
Diffstat (limited to 'ext/cog')
-rw-r--r--ext/cog/cogvirtframe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/cog/cogvirtframe.c b/ext/cog/cogvirtframe.c
index 74336ca8c..860dc8eac 100644
--- a/ext/cog/cogvirtframe.c
+++ b/ext/cog/cogvirtframe.c
@@ -1819,8 +1819,7 @@ convert_u8_s16 (CogFrame * frame, void *_dest, int component, int i)
int16_t *src;
src = cog_virt_frame_get_line (frame->virt_frame1, component, i);
- orc_addc_convert_u8_s16 (dest, frame->virt_priv,
- frame->components[component].width);
+ orc_addc_convert_u8_s16 (dest, src, frame->components[component].width);
}
CogFrame *
@@ -1834,7 +1833,6 @@ cog_virt_frame_new_convert_u8 (CogFrame * vf)
virt_frame = cog_frame_new_virtual (NULL, format, vf->width, vf->height);
virt_frame->virt_frame1 = vf;
virt_frame->render_line = convert_u8_s16;
- virt_frame->virt_priv = g_malloc (sizeof (int16_t) * vf->width);
return virt_frame;
}