On Wed, May 01, 2013 at 11:43:09AM +0200, Jan Gerber wrote: > forward patch from ffmpeg, > fixes http://bugzilla.libav.org/show_bug.cgi?id=500
> >From 68755a1adefd0e3f2356c85e4d3bd435a01118ae Mon Sep 17 00:00:00 2001 > From: Carl Eugen Hoyos <[email protected]> > Date: Mon, 8 Apr 2013 19:36:01 +0200 > Subject: [PATCH] Fix reading wav files with odd-length chunks. > > Fixes ticket #2417. > --- > libavformat/wavdec.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c > index 782fa64..2f3999a 100644 > --- a/libavformat/wavdec.c > +++ b/libavformat/wavdec.c > @@ -268,6 +268,8 @@ static int wav_read_header(AVFormatContext *s) > for (;;) { > AVStream *vst; > size = next_tag(pb, &tag); > + if (size & 1) > + size += 1; > next_tag_ofs = avio_tell(pb) + size; > > if (url_feof(pb)) > -- looks somewhat wrong - if chunk size is specified to be odd then it should be passed to the handlers as such I suppose it should be next_tag_ofs = avio_tell(pb) + size + (size & 1); _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
