[FFmpeg-cvslog] yuv2rgb: remove assert() the codepath is not invalid

Michael Niedermayer git at videolan.org
Thu Jun 7 18:01:37 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jun  7 17:45:16 2012 +0200| [23d8aaae46df36eb3f11463432d71d9fc1d2ec9e] | committer: Michael Niedermayer

yuv2rgb: remove assert() the codepath is not invalid

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

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

 libswscale/yuv2rgb.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 446b433..021a38f 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -26,7 +26,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <inttypes.h>
-#include <assert.h>
 
 #include "libavutil/cpu.h"
 #include "libavutil/bswap.h"
@@ -587,8 +586,6 @@ SwsFunc ff_yuv2rgb_get_func_ptr(SwsContext *c)
         return yuv2rgb_c_4b_ordered_dither;
     case PIX_FMT_MONOBLACK:
         return yuv2rgb_c_1_ordered_dither;
-    default:
-        assert(0);
     }
     return NULL;
 }



More information about the ffmpeg-cvslog mailing list