[FFmpeg-cvslog] avcodec/dcadec: add an assert to silence a uninitialized variable warning

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:48:41 2014 +0200| [62a9725bc95ef3c5101e2a9e74668cc1ecbd8819] | committer: Michael Niedermayer

avcodec/dcadec: add an assert to silence a uninitialized variable warning

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

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

 libavcodec/dcadec.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index 23d1dd9..6a9dfa3 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -2064,6 +2064,8 @@ static void dca_exss_parse_header(DCAContext *s)
         }
     }
 
+    av_assert0(num_assets > 0); // silence a warning
+
     for (i = 0; i < num_assets; i++)
         asset_size[i] = get_bits_long(&s->gb, 16 + 4 * blownup);
 



More information about the ffmpeg-cvslog mailing list