[FFmpeg-cvslog] swscale/output: silence warning about undefined 'ASSERT_LEVEL'

Paul B Mahol git at videolan.org
Sun May 19 16:09:20 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun May 19 14:06:16 2013 +0000| [b154d203b1c280624081a0b52ae27f489ea3333c] | committer: Paul B Mahol

swscale/output: silence warning about undefined 'ASSERT_LEVEL'

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libswscale/output.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/output.c b/libswscale/output.c
index 0023cd4..54b6ebd 100644
--- a/libswscale/output.c
+++ b/libswscale/output.c
@@ -1152,7 +1152,7 @@ yuv2rgb_write(uint8_t *_dest, int i, int Y1, int Y2,
             dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1] + (A1 << sh);
             dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2] + (A2 << sh);
         } else {
-#if ASSERT_LEVEL > 1
+#if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 1
             int sh = (target == AV_PIX_FMT_RGB32_1 || target == AV_PIX_FMT_BGR32_1) ? 0 : 24;
 
             av_assert2((((r[Y1] + g[Y1] + b[Y1]) >> sh) & 0xFF) == 0xFF);



More information about the ffmpeg-cvslog mailing list