summaryrefslogtreecommitdiffstats
path: root/libavcodec/opusdec.c
Commit message (Collapse)AuthorAgeFilesLines
* lavc/opusdec: Fix a memleak when reading invalid files.Carl Eugen Hoyos2015-11-221-1/+4
| | | | Reviewed-by: James Almer
* opusdec: Don't run vector_fmul_scalar on zero length arraysKieran Kunhya2015-10-271-1/+1
| | | | | | | Fixes crashes on fuzzed files Fixes Ticket4969 part2 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/opusdec: Fix extra samples read indexMichael Niedermayer2015-10-271-2/+2
| | | | | | | Fixes crash Fixes Ticket4969 part 1 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '14e558024642638085ae2bbeffc6087612e6a3f9'Hendrik Leppkes2015-08-021-15/+85
|\ | | | | | | | | | | | | * commit '14e558024642638085ae2bbeffc6087612e6a3f9': opusdec: properly handle mismatching configurations in multichannel streams Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * opusdec: properly handle mismatching configurations in multichannel streamsAnton Khirnov2015-08-021-14/+89
| | | | | | | | | | | | | | The substreams can have different resampling delays, so an additional level of buffering is needed to synchronize them. Bug-Id: 876
* | Merge commit 'def97856de6021965db86c25a732d78689bd6bb0'Michael Niedermayer2015-07-271-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'def97856de6021965db86c25a732d78689bd6bb0': lavc: AV-prefix all codec capabilities Conflicts: cmdutils.c ffmpeg.c ffplay.c libavcodec/8svx.c libavcodec/aacenc.c libavcodec/ac3dec.c libavcodec/adpcm.c libavcodec/alac.c libavcodec/atrac3plusdec.c libavcodec/bink.c libavcodec/dnxhddec.c libavcodec/dvdec.c libavcodec/dvenc.c libavcodec/ffv1dec.c libavcodec/ffv1enc.c libavcodec/fic.c libavcodec/flacdec.c libavcodec/flacenc.c libavcodec/flvdec.c libavcodec/fraps.c libavcodec/frwu.c libavcodec/gifdec.c libavcodec/h261dec.c libavcodec/hevc.c libavcodec/iff.c libavcodec/imc.c libavcodec/libopenjpegdec.c libavcodec/libvo-aacenc.c libavcodec/libvorbisenc.c libavcodec/libvpxdec.c libavcodec/libvpxenc.c libavcodec/libx264.c libavcodec/mjpegbdec.c libavcodec/mjpegdec.c libavcodec/mpegaudiodec_float.c libavcodec/msmpeg4dec.c libavcodec/mxpegdec.c libavcodec/nvenc_h264.c libavcodec/nvenc_hevc.c libavcodec/pngdec.c libavcodec/qpeg.c libavcodec/ra288.c libavcodec/rv10.c libavcodec/s302m.c libavcodec/sp5xdec.c libavcodec/takdec.c libavcodec/tiff.c libavcodec/tta.c libavcodec/utils.c libavcodec/v210dec.c libavcodec/vp6.c libavcodec/vp9.c libavcodec/wavpack.c libavcodec/yop.c Merged-by: Michael Niedermayer <michael@niedermayer.cc>
| * lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-271-1/+1
| | | | | | | | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | avcodec/opusdec: Fix delayed sample valueMichael Niedermayer2015-03-071-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Fixes out of array access Fixes: ffmpeg_opus_crash1.ogg This solution is likely not optimal in terms of error concealment but its simple and fixes the out of array access. Found-by: Thomas Lindroth <thomas.lindroth@gmail.com> Tested-by: Thomas Lindroth <thomas.lindroth@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/opusdec: Clear out pointers per packetMichael Niedermayer2015-03-071-0/+6
| | | | | | | | | | | | | | This is safer than to assume that all error pathes cleared them and nothing will use uncleared pointers. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/opusdec: remove unused headersPaul B Mahol2015-02-181-2/+0
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec: fix clobbered ff_get_buffer()Paul B Mahol2015-02-101-3/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/opusdec: Use avpriv_float_dsp_alloc()Michael Niedermayer2014-12-031-3/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '1973079417e8701b52ba810a72cb6c7c6f7f9a56'Michael Niedermayer2014-11-281-0/+6
|\ \ | |/ | | | | | | | | | | * commit '1973079417e8701b52ba810a72cb6c7c6f7f9a56': opusdec: make sure all substreams have the same number of coded samples Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * opusdec: make sure all substreams have the same number of coded samplesAnton Khirnov2014-11-271-0/+6
| | | | | | | | | | | | Fixes invalid writes with invalid multichannel streams. CC:libav-stable@libav.org
* | avcodec/opusdec: check alignment, misalignment could lead to crashes with avxMichael Niedermayer2014-05-251-0/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/opusdec: fix some const correctnessMichael Niedermayer2014-05-161-3/+3
| | | | | | | | | | | | | | also make a const array static Fixes 2 warnings Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/opusdec: switch to swresampleMichael Niedermayer2014-05-151-27/+26
| | | | | | | | | | | | | | This also fixes linking failures in doc/examples which where apparently caused by the linking order between avcodec and avresample Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'b70d7a4ac72d23f3448f3b08b770fdf5f57de222'Michael Niedermayer2014-05-151-4/+4
|/ | | | | | | | | | | | | | | | | * commit 'b70d7a4ac72d23f3448f3b08b770fdf5f57de222': lavc: add a native Opus decoder. Conflicts: Changelog configure libavcodec/version.h Fate tests pass with both avresample as well as swresample based opus decoder, but are disabled (reference files are very large so i want to think a day or 2 about if theres an alternative or if they could be avoided, they also dont match the official samples) Merged-by: Michael Niedermayer <michaelni@gmx.at>
* lavc: add a native Opus decoder.Anton Khirnov2014-05-151-0/+674
Initial implementation by Andrew D'Addesio <modchipv12@gmail.com> during GSoC 2012. Completion by Anton Khirnov <anton@khirnov.net>, sponsored by the Mozilla Corporation. Further contributions by: Christophe Gisquet <christophe.gisquet@gmail.com> Janne Grunau <janne-libav@jannau.net> Luca Barbato <lu_zero@gentoo.org>
OpenPOWER on IntegriCloud