[FFmpeg-cvslog] avcodec/dcadec: remove always true if()

Michael Niedermayer git at videolan.org
Thu May 8 16:59:03 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May  8 16:47:20 2014 +0200| [7e79d72c28718ec60e8e76f7fdb5d66e9f2fa028] | committer: Michael Niedermayer

avcodec/dcadec: remove always true if()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7e79d72c28718ec60e8e76f7fdb5d66e9f2fa028
---

 libavcodec/dcadec.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index e553ccf..23d1dd9 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -2075,7 +2075,6 @@ static void dca_exss_parse_header(DCAContext *s)
     /* not parsed further, we were only interested in the extensions mask
      * from the asset header */
 
-    if (num_assets > 0) {
         j = get_bits_count(&s->gb);
         if (start_posn + hdrsize * 8 > j)
             skip_bits_long(&s->gb, start_posn + hdrsize * 8 - j);
@@ -2100,7 +2099,6 @@ static void dca_exss_parse_header(DCAContext *s)
             if (start_posn + asset_size[i] * 8 > j)
                 skip_bits_long(&s->gb, start_posn + asset_size[i] * 8 - j);
         }
-    }
 }
 
 /**



More information about the ffmpeg-cvslog mailing list