mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
libavutil/integer: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2f23a8ab17
commit
58e4adb6f7
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "integer.h"
|
#include "integer.h"
|
||||||
|
#include "avassert.h"
|
||||||
|
|
||||||
AVInteger av_add_i(AVInteger a, AVInteger b){
|
AVInteger av_add_i(AVInteger a, AVInteger b){
|
||||||
int i, carry=0;
|
int i, carry=0;
|
||||||
@ -110,8 +111,8 @@ AVInteger av_mod_i(AVInteger *quot, AVInteger a, AVInteger b){
|
|||||||
AVInteger quot_temp;
|
AVInteger quot_temp;
|
||||||
if(!quot) quot = "_temp;
|
if(!quot) quot = "_temp;
|
||||||
|
|
||||||
assert((int16_t)a[AV_INTEGER_SIZE-1] >= 0 && (int16_t)b[AV_INTEGER_SIZE-1] >= 0);
|
av_assert2((int16_t)a[AV_INTEGER_SIZE-1] >= 0 && (int16_t)b[AV_INTEGER_SIZE-1] >= 0);
|
||||||
assert(av_log2(b)>=0);
|
av_assert2(av_log2(b)>=0);
|
||||||
|
|
||||||
if(i > 0)
|
if(i > 0)
|
||||||
b= av_shr_i(b, -i);
|
b= av_shr_i(b, -i);
|
||||||
|
Loading…
Reference in New Issue
Block a user