mirror of https://git.ffmpeg.org/ffmpeg.git
ac3dec: fix uninitialized var warning
This commit should be purely cosmetic Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
310fd0d3d4
commit
b3facc4af8
|
@ -61,7 +61,7 @@ static int ac3_eac3_probe(AVProbeData *p, enum AVCodecID expected_codec_id)
|
||||||
break;
|
break;
|
||||||
if (buf[0] == 0x77 && buf[1] == 0x0B) {
|
if (buf[0] == 0x77 && buf[1] == 0x0B) {
|
||||||
av_assert0(hdr.frame_size <= sizeof(buf3));
|
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 ] = buf[i+1];
|
||||||
buf3[i+1] = buf[i ];
|
buf3[i+1] = buf[i ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue