mirror of https://git.ffmpeg.org/ffmpeg.git
h264_parser: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
cd6aa95caa
commit
dc30c27eb1
|
@ -31,8 +31,6 @@
|
||||||
#include "h264data.h"
|
#include "h264data.h"
|
||||||
#include "golomb.h"
|
#include "golomb.h"
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
|
|
||||||
static int ff_h264_find_frame_end(H264Context *h, const uint8_t *buf, int buf_size)
|
static int ff_h264_find_frame_end(H264Context *h, const uint8_t *buf, int buf_size)
|
||||||
{
|
{
|
||||||
|
@ -324,7 +322,7 @@ static int h264_parse(AVCodecParserContext *s,
|
||||||
}
|
}
|
||||||
|
|
||||||
if(next<0 && next != END_NOT_FOUND){
|
if(next<0 && next != END_NOT_FOUND){
|
||||||
assert(pc->last_index + next >= 0 );
|
av_assert1(pc->last_index + next >= 0 );
|
||||||
ff_h264_find_frame_end(h, &pc->buffer[pc->last_index + next], -next); //update state
|
ff_h264_find_frame_end(h, &pc->buffer[pc->last_index + next], -next); //update state
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue