aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h261dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-07 21:31:22 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-07 21:31:22 +0200
commit07732b4f09df232b69933d26394d8c18466cc6fd (patch)
tree160de6fa3c43fd2e607ead66ef4233bfeb03281e /libavcodec/h261dec.c
parenta21c212681ad4493c2b95d166947d6366cd62524 (diff)
downloadffmpeg-07732b4f09df232b69933d26394d8c18466cc6fd.tar.gz
h261dec: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h261dec.c')
-rw-r--r--libavcodec/h261dec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c
index 54571b6354..031d77c144 100644
--- a/libavcodec/h261dec.c
+++ b/libavcodec/h261dec.c
@@ -25,6 +25,7 @@
* H.261 decoder.
*/
+#include "libavutil/avassert.h"
#include "dsputil.h"
#include "avcodec.h"
#include "mpegvideo.h"
@@ -629,8 +630,8 @@ retry:
}
ff_MPV_frame_end(s);
-assert(s->current_picture.f.pict_type == s->current_picture_ptr->f.pict_type);
-assert(s->current_picture.f.pict_type == s->pict_type);
+ av_assert0(s->current_picture.f.pict_type == s->current_picture_ptr->f.pict_type);
+ av_assert0(s->current_picture.f.pict_type == s->pict_type);
*pict = s->current_picture_ptr->f;
ff_print_debug_info(s, pict);