[FFmpeg-devel] [PATCH] check an url_fseek in read_dref()
Måns Rullgård
mans
Thu Dec 11 01:08:17 CET 2008
"Pascal Massimino" <pascal.massimino at gmail.com> writes:
> Hi everybody,
>
> attached, extra check against weird files.
>
> skal
>
> --- libavformat/mov.c 2008-12-10 15:24:17.943700000 -0800
> +++ libavformat/mov.c 2008-12-10 15:27:35.937770000 -0800
> @@ -295,7 +295,10 @@
> url_fskip(pb, len);
> }
> }
> - url_fseek(pb, next, SEEK_SET);
> + if (url_fseek(pb, next, SEEK_SET) != next) {
> + av_log(c->fc, AV_LOG_ERROR, "mov_read_dref: seek failed!\n");
> + return -1;
> + }
Wrong indentation.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list