Commit dc30c27e authored by Michael Niedermayer's avatar Michael Niedermayer

h264_parser: use av_assert

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cd6aa95c
......@@ -31,8 +31,6 @@
#include "h264data.h"
#include "golomb.h"
#include <assert.h>
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){
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
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment