[libav-commits] mov: Remove write-only variable in mov_read_chan().

Diego Biurrun git at libav.org
Mon May 7 20:36:24 CEST 2012


Module: libav
Branch: master
Commit: 455245ca8a10aa727ffb835db0c02c6bded46a8e

Author:    Diego Biurrun <diego at biurrun.de>
Committer: Diego Biurrun <diego at biurrun.de>
Date:      Thu Apr 19 14:53:23 2012 +0200

mov: Remove write-only variable in mov_read_chan().

libavformat/mov.c:597:25: warning: variable ‘cflags’ set but not used

---

 libavformat/mov.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 35c9b6e..ad1340a 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -624,9 +624,9 @@ static int mov_read_chan(MOVContext *c, AVIOContext *pb, MOVAtom atom)
 
     label_mask = 0;
     for (i = 0; i < num_descr; i++) {
-        uint32_t label, cflags;
+        uint32_t label;
         label     = avio_rb32(pb);          // mChannelLabel
-        cflags    = avio_rb32(pb);          // mChannelFlags
+        avio_rb32(pb);                      // mChannelFlags
         avio_rl32(pb);                      // mCoordinates[0]
         avio_rl32(pb);                      // mCoordinates[1]
         avio_rl32(pb);                      // mCoordinates[2]



More information about the libav-commits mailing list