mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 02:02:26 +00:00
tag: exif: Fix unitialized data warning
Fixes a valgrind warning on jifmux tests on -bad caused by unitialized bytes. Fixes #637758
This commit is contained in:
parent
b11303319c
commit
17777f2596
1 changed files with 2 additions and 2 deletions
|
@ -752,7 +752,7 @@ static void
|
||||||
write_exif_undefined_tag (GstExifWriter * writer, guint16 tag,
|
write_exif_undefined_tag (GstExifWriter * writer, guint16 tag,
|
||||||
const guint8 * data, gint size)
|
const guint8 * data, gint size)
|
||||||
{
|
{
|
||||||
guint32 offset;
|
guint32 offset = 0;
|
||||||
|
|
||||||
if (size > 4) {
|
if (size > 4) {
|
||||||
/* we only use the data offset here, later we add up the
|
/* we only use the data offset here, later we add up the
|
||||||
|
@ -773,7 +773,7 @@ static void
|
||||||
write_exif_ascii_tag (GstExifWriter * writer, guint16 tag, const gchar * str)
|
write_exif_ascii_tag (GstExifWriter * writer, guint16 tag, const gchar * str)
|
||||||
{
|
{
|
||||||
gint size;
|
gint size;
|
||||||
guint32 offset;
|
guint32 offset = 0;
|
||||||
|
|
||||||
size = strlen (str) + 1;
|
size = strlen (str) + 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue