summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-25 21:12:22 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-25 23:10:45 +0200
commitdc30c27eb162f383a0eddb2a7e5e911687255c8e (patch)
tree89029ca6d4ffd0049f5285c07a67d4317ea77e44
parentcd6aa95caa41af43a6ec5aa53cf167525430955b (diff)
h264_parser: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/h264_parser.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index 3d557599e0..6a7acdcb28 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -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
}
}