Commit 34174abf authored by Måns Rullgård's avatar Måns Rullgård

avoid uninitialised variable warning and clarify code

Originally committed as revision 9543 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b474d1f3
......@@ -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