diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-15 03:22:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-15 03:22:00 +0200 |
commit | 35782bfbca0abe39e33d65a771834c6b87855c16 (patch) | |
tree | 34b0d1baff1fcd7b7e055de6507680b4479e6d8a | |
parent | 151469db3379bf47db48a14d83704fd07631e4fe (diff) | |
download | ffmpeg-35782bfbca0abe39e33d65a771834c6b87855c16.tar.gz |
h264: Change asserts to av_asserts in ff_h264_fill_default_ref_list()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/h264_refs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index c15e92845d..dbdd5317a7 100644 --- a/libavcodec/h264_refs.c +++ b/libavcodec/h264_refs.c @@ -123,10 +123,10 @@ int ff_h264_fill_default_ref_list(H264Context *h){ for(list= 0; list<2; list++){ len= add_sorted(sorted , h->short_ref, h->short_ref_count, cur_poc, 1^list); len+=add_sorted(sorted+len, h->short_ref, h->short_ref_count, cur_poc, 0^list); - assert(len<=32); + av_assert0(len<=32); len= build_def_list(h->default_ref_list[list] , sorted , len, 0, s->picture_structure); len+=build_def_list(h->default_ref_list[list]+len, h->long_ref, 16 , 1, s->picture_structure); - assert(len<=32); + av_assert0(len<=32); if(len < h->ref_count[list]) memset(&h->default_ref_list[list][len], 0, sizeof(Picture)*(h->ref_count[list] - len)); @@ -141,7 +141,7 @@ int ff_h264_fill_default_ref_list(H264Context *h){ }else{ len = build_def_list(h->default_ref_list[0] , h->short_ref, h->short_ref_count, 0, s->picture_structure); len+= build_def_list(h->default_ref_list[0]+len, h-> long_ref, 16 , 1, s->picture_structure); - assert(len <= 32); + av_assert0(len<=32); if(len < h->ref_count[0]) memset(&h->default_ref_list[0][len], 0, sizeof(Picture)*(h->ref_count[0] - len)); } |