[FFmpeg-cvslog] roqvideodec: replace dead code by assert

Michael Niedermayer git at videolan.org
Fri Oct 19 03:50:57 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Oct 19 03:15:06 2012 +0200| [a06f943f9d65a2e80536ee9e99d86e855c8ca8da] | committer: Michael Niedermayer

roqvideodec: replace dead code by assert

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

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

 libavcodec/roqvideodec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/roqvideodec.c b/libavcodec/roqvideodec.c
index a6f213c..08e644e 100644
--- a/libavcodec/roqvideodec.c
+++ b/libavcodec/roqvideodec.c
@@ -25,6 +25,7 @@
  *   http://www.csse.monash.edu.au/~timf/
  */
 
+#include "libavutil/avassert.h"
 #include "avcodec.h"
 #include "bytestream.h"
 #include "roqvideo.h"
@@ -149,7 +150,7 @@ static void roqvideo_decode_frame(RoqContext *ri)
                     }
                     break;
                 default:
-                    av_log(ri->avctx, AV_LOG_ERROR, "Unknown vq code: %d\n", vqid);
+                    av_assert2(0);
             }
         }
 



More information about the ffmpeg-cvslog mailing list