[FFmpeg-user] Possible bug in h264.c ff_h264_decode_nal

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Nov 6 23:11:25 CET 2012


David R Robison <drrobison <at> openroadsconsulting.com> writes:

> +++ ffmpeg/libavcodec/h264.c    (working copy)
> @@ -178,7 +178,7 @@
>       length--;
> 
>   #define STARTCODE_TEST                                                  \
> -        if (i + 2 < length && src[i + 1] == 0 && src[i + 2] <= 3) {     \
> +        if (i + 2 < length && src[i + 1] == 0 && (src[i + 2] == 1 || 
> src[i + 2] == 3)) {     \

Please send patches to ffmpeg-devel 
(and please provide a sample).

Carl Eugen



More information about the ffmpeg-user mailing list