Re: [FFmpeg-devel] [PATCH]lavf/wavdec: Allow decoding of invalid large wav files

2015-05-17 Thread Carl Eugen Hoyos
Michael Niedermayer gmx.at> writes: > > wavdec.c |5 - > > 1 file changed, 4 insertions(+), 1 deletion(-) > > 227da1c1acd2affa88538476148a1c6bbf43979b patchwav4gdec.diff > > maybe ok > > i think a warning or something should be printed > for such files though Merged with a warning m

Re: [FFmpeg-devel] [PATCH]lavf/wavdec: Allow decoding of invalid large wav files

2015-05-09 Thread Michael Niedermayer
On Fri, May 08, 2015 at 08:01:15PM +0200, Carl Eugen Hoyos wrote: > Hi! > > Valid wav files are not larger than 4G, files that are > larger are truncated by current FFmpeg. > Attached patch allows reading such files if the size > was (imo "correctly") written to -1. > > Please comment, Carl Eug

[FFmpeg-devel] [PATCH]lavf/wavdec: Allow decoding of invalid large wav files

2015-05-08 Thread Carl Eugen Hoyos
Hi! Valid wav files are not larger than 4G, files that are larger are truncated by current FFmpeg. Attached patch allows reading such files if the size was (imo "correctly") written to -1. Please comment, Carl Eugen diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index 410c2ec..332f643