summaryrefslogtreecommitdiff
path: root/libavformat/ac3dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-30 05:17:24 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-30 05:17:24 +0200
commitb3facc4af8110beabdcade75e8d753b511d0e8cf (patch)
tree17474966f2635bc7d45794592df0032e2d051178 /libavformat/ac3dec.c
parent310fd0d3d456501d67ca9c029fa4462e286a215e (diff)
downloadffmpeg-b3facc4af8110beabdcade75e8d753b511d0e8cf.tar.gz
ac3dec: fix uninitialized var warning
This commit should be purely cosmetic Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/ac3dec.c')
-rw-r--r--libavformat/ac3dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ac3dec.c b/libavformat/ac3dec.c
index a11a36e582..7a34ea8b4b 100644
--- a/libavformat/ac3dec.c
+++ b/libavformat/ac3dec.c
@@ -61,7 +61,7 @@ static int ac3_eac3_probe(AVProbeData *p, enum AVCodecID expected_codec_id)
break;
if (buf[0] == 0x77 && buf[1] == 0x0B) {
av_assert0(hdr.frame_size <= sizeof(buf3));
- for(; i<hdr.frame_size; i+=2) {
+ for(i=8; i<hdr.frame_size; i+=2) {
buf3[i ] = buf[i+1];
buf3[i+1] = buf[i ];
}