aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-06-22 21:30:17 +0000
committerPaul B Mahol <onemda@gmail.com>2012-06-22 22:47:33 +0000
commit92779658838487489c7f7ac0a2c4087b158fd57d (patch)
treebf9f3885cfef10f4369fd46b3d273219ead05096
parentc0ca840837b3fcd575381407bba7a8347eaeee36 (diff)
downloadffmpeg-92779658838487489c7f7ac0a2c4087b158fd57d.tar.gz
bmpenc: use av_assert()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/bmpenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/bmpenc.c b/libavcodec/bmpenc.c
index 11455cd18e..455d2a9c80 100644
--- a/libavcodec/bmpenc.c
+++ b/libavcodec/bmpenc.c
@@ -21,10 +21,10 @@
*/
#include "libavutil/imgutils.h"
+#include "libavutil/avassert.h"
#include "avcodec.h"
#include "bytestream.h"
#include "bmp.h"
-#include <assert.h>
#include "internal.h"
static const uint32_t monoblack_pal[] = { 0x000000, 0xFFFFFF };
@@ -98,7 +98,7 @@ static int bmp_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
case PIX_FMT_RGB4_BYTE:
case PIX_FMT_BGR4_BYTE:
case PIX_FMT_GRAY8:
- assert(bit_count == 8);
+ av_assert1(bit_count == 8);
ff_set_systematic_pal2(palette256, avctx->pix_fmt);
pal = palette256;
break;