diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-05-01 02:31:42 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-01 02:38:29 +0200 |
commit | 7ac85f4be840361d55db302ac476ced28297a061 (patch) | |
tree | 04ed5b636e3e28f8b01b880ed1a02c9cda6edd0b /libavcodec | |
parent | 0e5758d1013dbf68b4b0ea1ad847d52769d475db (diff) | |
download | ffmpeg-7ac85f4be840361d55db302ac476ced28297a061.tar.gz |
H264:use av_assert0() for frame num check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264_refs.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <michaelni@gmx.at> */ +#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 && |