summaryrefslogtreecommitdiffstats
path: root/libavcodec/wavpack.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/wavpack: Check L/R values before use to avoid harmless integer ↵Michael Niedermayer2015-05-031-0/+8
| | | | | | overflow and undefined behavior in fate Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wavpack: check number of channelsChristophe Gisquet2014-08-221-1/+4
| | | | | This means container and codec disagree. The codec is supposed to know better so this could be an error instead.
* wavpack: report if there is no bits leftChristophe Gisquet2014-08-191-0/+4
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/wavpack: fix () in macrosMichael Niedermayer2014-06-181-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/wavpack: initialize pointers to silence warning about them possibly ↵Michael Niedermayer2014-05-071-1/+1
| | | | | | being uninitialized Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/wavpack fix *void pointer arithmeticMichael Niedermayer2013-12-231-3/+3
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/wavpack: clear remainder of data in case of error in ↵Michael Niedermayer2013-12-231-0/+13
| | | | | | | | | wv_unpack_mono/stereo() Fixes use of uninitialized data Fixes: msan_uninit-mem_7fd85b654950_4005_because.wv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/wavpack: use init_get_bits8()Paul B Mahol2013-10-301-2/+4
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* Merge commit '23a211cbba0b7c9ee694040031b2e5da1be54a00'Michael Niedermayer2013-10-281-3/+5
|\ | | | | | | | | | | | | | | | | | | | | * commit '23a211cbba0b7c9ee694040031b2e5da1be54a00': lavc: change all decoders to behave consistently with AV_EF_CRCCHECK. Conflicts: libavcodec/avcodec.h libavcodec/tta.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: change all decoders to behave consistently with AV_EF_CRCCHECK.Anton Khirnov2013-10-281-3/+5
| | | | | | | | | | | | Just crccheck prints a warning, crccheck+explode returns an error. Also document this behavior.
* | Merge commit 'b2bed9325dbd6be0da1d91ffed3f513c40274fd2'Michael Niedermayer2013-10-041-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b2bed9325dbd6be0da1d91ffed3f513c40274fd2': cosmetics: Group .name and .long_name together in codec/format declarations Conflicts: libavcodec/8svx.c libavcodec/alac.c libavcodec/cljr.c libavcodec/dnxhddec.c libavcodec/dnxhdenc.c libavcodec/dpxenc.c libavcodec/dvdec.c libavcodec/dvdsubdec.c libavcodec/dvdsubenc.c libavcodec/ffv1dec.c libavcodec/flacdec.c libavcodec/flvdec.c libavcodec/fraps.c libavcodec/frwu.c libavcodec/g726.c libavcodec/gif.c libavcodec/gifdec.c libavcodec/h261dec.c libavcodec/h263dec.c libavcodec/iff.c libavcodec/imc.c libavcodec/libopencore-amr.c libavcodec/libopenjpegdec.c libavcodec/libopenjpegenc.c libavcodec/libspeexenc.c libavcodec/libvo-amrwbenc.c libavcodec/libvorbisenc.c libavcodec/libvpxenc.c libavcodec/libx264.c libavcodec/libxavs.c libavcodec/libxvid.c libavcodec/ljpegenc.c libavcodec/mjpegbdec.c libavcodec/mjpegdec.c libavcodec/mpeg12dec.c libavcodec/mpeg4videodec.c libavcodec/msmpeg4dec.c libavcodec/pgssubdec.c libavcodec/pngdec.c libavcodec/pngenc.c libavcodec/proresdec_lgpl.c libavcodec/proresenc_kostya.c libavcodec/ra144enc.c libavcodec/rawdec.c libavcodec/rv10.c libavcodec/sp5xdec.c libavcodec/takdec.c libavcodec/tta.c libavcodec/v210dec.c libavcodec/vp6.c libavcodec/wavpack.c libavcodec/xbmenc.c libavcodec/yop.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-031-1/+1
| |
* | WavPack encoderPaul B Mahol2013-08-141-159/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | lavc: copy AVCodecContext for threadsPaul B Mahol2013-06-131-0/+8
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | wavpack: add missing .\n to entropy error messagePaul B Mahol2013-06-081-1/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | wavpack: frame multi-threading supportPaul B Mahol2013-06-051-2/+4
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | wavpack: remove redundant error log messagePaul B Mahol2013-06-031-3/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Merge commit '89806691b1c39181c63d95e0fddc30f11e2a7b04'Michael Niedermayer2013-05-291-5/+10
|\ \ | |/ | | | | | | | | | | | | * commit '89806691b1c39181c63d95e0fddc30f11e2a7b04': wavpack: check that all the channels were coded. wavpack: check that there aren't too many blocks per packet Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wavpack: check that all the channels were coded.Anton Khirnov2013-05-281-0/+5
| |
| * wavpack: check that there aren't too many blocks per packetAnton Khirnov2013-05-281-0/+5
| |
* | Merge commit '7d039e70a5ff23a7deaa866684d2e8872acc5169'Michael Niedermayer2013-05-291-17/+18
|\ \ | |/ | | | | | | | | | | * commit '7d039e70a5ff23a7deaa866684d2e8872acc5169': wavpack: extract channel information from the bitstream Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wavpack: extract channel information from the bitstreamAnton Khirnov2013-05-281-17/+18
| | | | | | | | | | This way we don't require the caller to parse the block header. It also allows the channel configuration to change mid-stream.
* | Merge commit '78f75b6fa421dd39a715588e9487579f1ce5bada'Michael Niedermayer2013-05-291-22/+44
|\ \ | |/ | | | | | | | | | | | | | | | | | | * commit '78f75b6fa421dd39a715588e9487579f1ce5bada': wavpack: extract sample rate from the bitstream configure: support gcc-4.8 instrumentation Conflicts: libavcodec/wavpack.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wavpack: extract sample rate from the bitstreamAnton Khirnov2013-05-281-23/+43
| | | | | | | | | | This way we don't require the caller to parse the block header. It also allows the sample rate to change mid-stream.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-05-281-40/+12
|\ \ | |/ | | | | | | | | | | | | | | | | | | * qatar/master: smacker: assign video frame PTS matroskadec: export full wavpack blocks. Conflicts: libavcodec/wavpack.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * matroskadec: export full wavpack blocks.Anton Khirnov2013-05-281-40/+12
| | | | | | | | | | This allows us to get rid of demuxer-specific hacks in the decoder and will allow streamcopy from matroska once we have a wavpack muxer.
* | Merge commit '5074f4545c439420daebe4c2f28ed216440b6ec7'Michael Niedermayer2013-05-281-19/+14
|\ \ | |/ | | | | | | | | | | | | | | | | * commit '5074f4545c439420daebe4c2f28ed216440b6ec7': wavpack demuxer: export full wavpack blocks. Conflicts: libavformat/wv.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wavpack demuxer: export full wavpack blocks.Anton Khirnov2013-05-281-19/+14
| | | | | | | | | | | | | | | | Currently the demuxer shaves the blocks and exports only the information that is useful to the decoder. Exporting the blocks just as they are stored is simpler to understand and will make remuxing wavpack easier.
* | Merge commit '72dee5f40b236c5eb9e68df39df80c68392269e3'Michael Niedermayer2013-05-281-4/+1
|\ \ | |/ | | | | | | | | | | * commit '72dee5f40b236c5eb9e68df39df80c68392269e3': wavpack: don't set sample format in init. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wavpack: don't set sample format in init.Anton Khirnov2013-05-281-4/+1
| | | | | | | | We don't know whether it will be float until we look at the data.
* | Merge commit '35596bd4f4d3c39eed838cf3a2613817d62dda99'Michael Niedermayer2013-05-281-5/+4
|\ \ | |/ | | | | | | | | | | * commit '35596bd4f4d3c39eed838cf3a2613817d62dda99': wavpack: remove a useless parameter from wavpack_decode_block(). Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wavpack: remove a useless parameter from wavpack_decode_block().Anton Khirnov2013-05-281-5/+4
| | | | | | | | The decoder always returns output if an error does not occur.
* | Merge commit 'd1bec4be2207738669874e02605e879ea9620974'Michael Niedermayer2013-05-281-6/+1
|\ \ | |/ | | | | | | | | | | * commit 'd1bec4be2207738669874e02605e879ea9620974': wavpack: return an error on 0-sized blocks Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wavpack: return an error on 0-sized blocksAnton Khirnov2013-05-281-6/+1
| | | | | | | | Such blocks are not valid.
* | Merge commit '1d177200ce1ffd8902729e3a4d647b04fc4b35f8'Michael Niedermayer2013-05-281-5/+0
|\ \ | |/ | | | | | | | | | | * commit '1d177200ce1ffd8902729e3a4d647b04fc4b35f8': wavpack: remove a useless check. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wavpack: remove a useless check.Anton Khirnov2013-05-281-5/+0
| | | | | | | | | | | | Number of samples in the first block is checked to be strictly positive earlier in wavpack_decode_frame() and number of samples in all the other blocks is checked to be equal to the first one.
* | Merge commit '0f3a0b24dd6f595feaa4526e52ffa7d05c3d7840'Michael Niedermayer2013-05-281-16/+16
|\ \ | |/ | | | | | | | | | | | | | | | | | | * commit '0f3a0b24dd6f595feaa4526e52ffa7d05c3d7840': wavpack: add an error message to a failure. wavpack: return 0 instead of samples count from decoding functions Conflicts: libavcodec/wavpack.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wavpack: add an error message to a failure.Anton Khirnov2013-05-281-1/+4
| |
| * wavpack: return 0 instead of samples count from decoding functionsAnton Khirnov2013-05-281-15/+14
| | | | | | | | | | The caller never cares about the number of decoded samples, so this only confuses the reader.
* | wavpack: Properly check channel index, dont write out of arraysMichael Niedermayer2013-05-281-5/+5
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '528daa399018af74d52192eb1861d2b59d256111'Michael Niedermayer2013-05-281-76/+44
|\ \ | |/ | | | | | | | | | | * commit '528daa399018af74d52192eb1861d2b59d256111': wavpack: switch to planar output Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wavpack: switch to planar outputAnton Khirnov2013-05-281-76/+44
| | | | | | | | This simplifies the code and makes it faster.
* | Merge commit 'a7ec3a9a4eea4e374afcd6e05828b103e6fcb601'Michael Niedermayer2013-05-281-14/+2
|\ \ | |/ | | | | | | | | | | * commit 'a7ec3a9a4eea4e374afcd6e05828b103e6fcb601': wavpack: drop redundant if/else blocks Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wavpack: drop redundant if/else blocksAnton Khirnov2013-05-281-14/+2
| |
* | Merge commit '7b44c9918086c6aeacf7ef9f902af38b97f43170'Michael Niedermayer2013-05-281-1/+1
|\ \ | |/ | | | | | | | | | | * commit '7b44c9918086c6aeacf7ef9f902af38b97f43170': wavpack: remove the subframes codec cap Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wavpack: remove the subframes codec capAnton Khirnov2013-05-281-1/+1
| | | | | | | | The decoder always consumes full packets.
* | avcodec/wavpack: remove ;;Michael Niedermayer2013-05-231-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-05-231-0/+3
|\ \ | |/ | | | | | | | | | | * qatar/master: wavpack: check packet size early Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wavpack: check packet size earlyLuca Barbato2013-05-221-0/+3
| | | | | | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* | Merge commit '3f0b6d7a6248a33df37b98cfcb37a1acce263f62'Michael Niedermayer2013-05-231-85/+85
|\ \ | |/ | | | | | | | | | | | | | | | | * commit '3f0b6d7a6248a33df37b98cfcb37a1acce263f62': wavpack: use bytestream2 in wavpack_decode_block Conflicts: libavcodec/wavpack.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
OpenPOWER on IntegriCloud