From 7ac85f4be840361d55db302ac476ced28297a061 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 1 May 2011 02:31:42 +0200 Subject: [PATCH] H264:use av_assert0() for frame num check Signed-off-by: Michael Niedermayer --- libavcodec/h264_refs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index 74eaaa8ada..e850484e59 100644 --- a/libavcodec/h264_refs.c +++ b/libavcodec/h264_refs.c @@ -25,6 +25,7 @@ * @author Michael Niedermayer */ +#include "libavutil/avassert.h" #include "internal.h" #include "dsputil.h" #include "avcodec.h" @@ -476,7 +477,7 @@ static void print_long_term(H264Context *h) { void ff_generate_sliding_window_mmcos(H264Context *h) { MpegEncContext * const s = &h->s; - assert(h->long_ref_count + h->short_ref_count <= h->sps.ref_frame_count); + av_assert0(h->long_ref_count + h->short_ref_count <= h->sps.ref_frame_count); h->mmco_index= 0; if(h->short_ref_count && h->long_ref_count + h->short_ref_count == h->sps.ref_frame_count &&