diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 1e5ac60520..db4f63ed52 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1402,6 +1402,7 @@ static const uint8_t *decode_nal(H264Context *h, const uint8_t *src, int *dst_le } break; } + i-= RS; } if(i>=length-1){ //no escaped 0