diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index cc3bff1375..4f42489ccc 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -338,7 +338,7 @@ static int mpeg4_find_frame_end(MpegEncContext *s, uint8_t *buf, int buf_size){ } pc->frame_start_found= vop_found; pc->state= state; - return -1; + return END_NOT_FOUND; } /** diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 4e1375dcc2..5acce0d833 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3943,7 +3943,7 @@ static int find_frame_end(MpegEncContext *s, uint8_t *buf, int buf_size){ } pc->state= state; - return -1; + return END_NOT_FOUND; } static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){