On Mon, May 02, 2016 at 10:27:08PM +0200, Alexandra Hájková wrote:
> --- a/libavformat/asfdec.c
> +++ b/libavformat/asfdec.c
> @@ -1737,7 +1737,15 @@ static int asf_read_header(AVFormatContext *s)
> } else {
> size = avio_rl64(pb);
> - align_position(pb, asf->offset, size);
> + if (size < INT64_MAX)
> + align_position(pb, asf->offset, size);
> + else {
> + if (asf->data_reached) {
> + avio_seek(pb, asf->first_packet_offset, SEEK_SET);
> + break;
> + } else
> + return AVERROR_INVALIDDATA;
> + }
You don't need to nest the second if-block.
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel