[FFmpeg-cvslog] ac3dec: fix uninitialized var warning

Michael Niedermayer git at videolan.org
Thu Aug 30 05:25:06 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug 30 05:17:24 2012 +0200| [b3facc4af8110beabdcade75e8d753b511d0e8cf] | committer: Michael Niedermayer

ac3dec: fix uninitialized var warning

This commit should be purely cosmetic

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b3facc4af8110beabdcade75e8d753b511d0e8cf
---

 libavformat/ac3dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/ac3dec.c b/libavformat/ac3dec.c
index a11a36e..7a34ea8 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  ];
                 }



More information about the ffmpeg-cvslog mailing list