Bruce Dawson
09b3a42495
riffdec: Explicitly null-terminate array to work around VC++ bug
...
Due to this bug in VC++ 2015 Update 1:
https://connect.microsoft.com/VisualStudio/feedback/details/2291638
the 'key' array in ff_read_riff_info() ends up being not null
terminated which led to failures in a Chromium unit tests. Update 2
should have a fix, but until then it is important to avoid problems.
9 years ago
Michael Niedermayer
4e31176e14
avformat/riffdec: remove special case for bitrate > 32bit
...
AVCodecContext.bitrate is 64bit
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
32bf6550cb
avformat/riffdec: Initialize bitrate
...
Fixes CID1338334
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
b456ece557
XMA1 and XMA2 stereo decoders
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Carl Eugen Hoyos
f17ca46009
lavf/riff: Support decoding Ambisonic wav files.
...
Reported and tested by Andy Furniss, adf d lists at gmail
9 years ago
Vittorio Giovara
059a934806
lavc: Consistently prefix input buffer defines
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Michael Niedermayer
839d6bc192
avformat/riffde: Fix integer overflow in bitrate
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Andreas Cadhalpun
189420cb56
riffdec: prevent negative bit rate
...
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Andreas Cadhalpun
f1bdc23437
riff: Validate bitrate
9 years ago
Luca Barbato
d80811c94e
riff: Use the correct logging context
9 years ago
Luca Barbato
1b4c468477
riff: Validate the wav header size before trying to parse it
10 years ago
Michael Niedermayer
da06169850
avformat/riffdec: Forward error code from avio_read() in ff_get_guid()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
fd3e7447c8
avformat/riffdec: Use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Thomas Volkert
00d7555f34
wavdec: RIFX file format support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
e74f2be1ed
avformat/riffdec: ask for samples with wav header size < 14
...
Based on commit by Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
James Almer
d34ec64a22
replace calls to url_feof() with avio_feof()
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
d32926db7f
avformat/riff: return error code from ff_get_guid()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Carl Eugen Hoyos
862174ec83
Move GUID-related objects to riffenc.c and riff.c.
...
This simplifies the following eac3-in-wav patch.
11 years ago
Michael Niedermayer
0b9ca70243
avformat/riffdec: use ff_get_extradata()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Paul B Mahol
a807c68253
avformat: use ff_alloc_extradata()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Martin Storsjö
d07aa3f02b
riffdec: Add sanity checks for the sample rate
...
This avoids a division by zero for G726.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Diego Biurrun
255d9c570e
riff: Move demuxing code to a separate file.
11 years ago