Commit c4abddb5 authored by mru's avatar mru

avoid uninitialised variable warning and clarify code


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9543 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9c79b52d
......@@ -608,7 +608,7 @@ resync:
/* for AC3, needs to swap bytes */
if (st->codec->codec_id == CODEC_ID_AC3) {
ptr = pkt->data;
for(j=0;j<len;j+=2) {
for(j=0;j<pkt->size;j+=2) {
FFSWAP(int, ptr[0], ptr[1]);
ptr += 2;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment