From: Petri H. <phi...@us...> - 2013-09-22 17:59:15
|
# HG changeset patch # User Petri Hintukainen <phi...@us...> # Date 1379872671 -10800 # Node ID 6d4a71dea1dfecd14493e0c2567606e68657eaf4 # Branch default # Parent 8c3064ec05f3f24556983f5ba7b55d6dd84890ea demux_aac: fixed check for ADIF header (was broken in merge commit 5 years ago) detected with valgrind (branch condition depends on uninitialized data) diff --git a/src/demuxers/demux_aac.c b/src/demuxers/demux_aac.c --- a/src/demuxers/demux_aac.c +++ b/src/demuxers/demux_aac.c @@ -91,7 +91,7 @@ return 0; /* Check for an ADIF header - should be at the start of the file */ - if (_x_is_fourcc(peak, "ADIF")) { + if (_x_is_fourcc(&signature, "ADIF")) { lprintf("found ADIF header\n"); return 1; } |