diff options
author | Måns Rullgård <mans@mansr.com> | 2007-07-08 13:42:52 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-07-08 13:42:52 +0000 |
commit | 34174abf646fe35e05895c4fe6d0bd5b0489f223 (patch) | |
tree | b68947610c42d8ffff2111d2cb4df1f1dba4d916 | |
parent | b474d1f3fa6d951b91962eb0eb26945c25988e5a (diff) | |
download | ffmpeg-34174abf646fe35e05895c4fe6d0bd5b0489f223.tar.gz |
avoid uninitialised variable warning and clarify code
Originally committed as revision 9543 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/rmdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 7ce21e9af4..100d512adb 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -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; } |