changeset 2237:db097a051c65 libavformat

avoid uninitialised variable warning and clarify code
author mru
date Sun, 08 Jul 2007 13:42:52 +0000
parents 117edddfce20
children 98ac80739c58
files rmdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rmdec.c	Sun Jul 08 13:42:51 2007 +0000
+++ b/rmdec.c	Sun Jul 08 13:42:52 2007 +0000
@@ -608,7 +608,7 @@
     /* 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;
         }