diff --git a/libavcodec/h264.c b/libavcodec/h264.c index a170177fa4..1e5ac60520 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1375,9 +1375,26 @@ static const uint8_t *decode_nal(H264Context *h, const uint8_t *src, int *dst_le for(i=0; i0 && !src[i]) i--; + while(src[i]) i++; +#else +# define RS 0 for(i=0; i+10 && src[i-1]==0) i--; +#endif if(i+2