mirror of https://git.ffmpeg.org/ffmpeg.git
rtpdec_qdm2: change one assert to av_assert0
Failure of this assert could lead to hard to debug behavior Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e47024d72f
commit
f657d495b0
|
@ -26,6 +26,7 @@
|
|||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include "libavutil/avassert.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "libavcodec/avcodec.h"
|
||||
#include "rtp.h"
|
||||
|
@ -193,7 +194,7 @@ static int qdm2_restore_block(PayloadContext *qdm, AVStream *st, AVPacket *pkt)
|
|||
for (n = 0; n < 0x80; n++)
|
||||
if (qdm->len[n] > 0)
|
||||
break;
|
||||
assert(n < 0x80);
|
||||
av_assert0(n < 0x80);
|
||||
|
||||
if ((res = av_new_packet(pkt, qdm->block_size)) < 0)
|
||||
return res;
|
||||
|
|
Loading…
Reference in New Issue