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 /libavformat/rmdec.c | |
parent | b474d1f3fa6d951b91962eb0eb26945c25988e5a (diff) | |
download | ffmpeg-streaming-34174abf646fe35e05895c4fe6d0bd5b0489f223.zip ffmpeg-streaming-34174abf646fe35e05895c4fe6d0bd5b0489f223.tar.gz |
avoid uninitialised variable warning and clarify code
Originally committed as revision 9543 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rmdec.c')
-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 7ce21e9..100d512 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; } |