[SCM] libav/experimental: avoid uninitialised variable warning and clarify code
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:03:16 UTC 2013
The following commit has been merged in the experimental branch:
commit 34174abf646fe35e05895c4fe6d0bd5b0489f223
Author: Måns Rullgård <mans at mansr.com>
Date: Sun Jul 8 13:42:52 2007 +0000
avoid uninitialised variable warning and clarify code
Originally committed as revision 9543 to svn://svn.ffmpeg.org/ffmpeg/trunk
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;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list