summaryrefslogtreecommitdiff
path: root/libavcodec/pngenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-11 21:41:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-11 21:41:03 +0200
commit65efc66d8ea9aee562d26e2522ad94229649897a (patch)
tree60c6ee4477ead50fdcf3fcd928c4ac41a86ddd4f /libavcodec/pngenc.c
parent7925f923a5a31ad8d0d91a95eb36e60b0fe1f35d (diff)
pngenc: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pngenc.c')
-rw-r--r--libavcodec/pngenc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
index 7c9e8d5b3e..1d362b577e 100644
--- a/libavcodec/pngenc.c
+++ b/libavcodec/pngenc.c
@@ -24,6 +24,8 @@
#include "dsputil.h"
#include "png.h"
+#include "libavutil/avassert.h"
+
/* TODO:
* - add 2, 4 and 16 bit depth support
*/
@@ -147,7 +149,7 @@ static uint8_t *png_choose_filter(PNGEncContext *s, uint8_t *dst,
uint8_t *src, uint8_t *top, int size, int bpp)
{
int pred = s->filter_type;
- assert(bpp || !pred);
+ av_assert0(bpp || !pred);
if(!top && pred)
pred = PNG_FILTER_VALUE_SUB;
if(pred == PNG_FILTER_VALUE_MIXED) {