summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodec_template.c
Commit message (Collapse)AuthorAge
* avcodec/mpegaudiodec_template: only allocate fdsp when its usedMichael Niedermayer2014-12-05
| | | | | | Fixes memleak Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mpegaudiodec_float: Use avpriv_float_dsp_alloc()Michael Niedermayer2014-12-03
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mpegaudiodec_template: use av_freep(), do not leave stale pointers ↵Michael Niedermayer2014-10-19
| | | | | | in memory Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Drop remaining unneeded != NULLMichael Niedermayer2014-08-15
| | | | | Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39'Michael Niedermayer2014-08-15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39': cosmetics: Write NULL pointer equality checks more compactly Conflicts: cmdutils.c ffmpeg_opt.c ffplay.c libavcodec/dvbsub.c libavcodec/dvdsubdec.c libavcodec/dvdsubenc.c libavcodec/dxa.c libavcodec/libxvid_rc.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/rv10.c libavcodec/tiffenc.c libavcodec/utils.c libavcodec/vc1dec.c libavcodec/zmbv.c libavdevice/v4l2.c libavformat/matroskadec.c libavformat/movenc.c libavformat/sdp.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-15
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | avcodec/mpegaudiodec: Reset dither and mdct stateMichael Niedermayer2014-06-05
| | | | | | | | | | | | | | This makes the mp3 decoder produce the same result when repeatly flushing and decoding Suggested-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegaudiodec_template: make shift unsigned to avoid undefined behaviorMichael Niedermayer2014-05-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegaudiodec_template: decode_frame_mp3on4: conceal errors in ↵Michael Niedermayer2014-01-14
| | | | | | | | | | | | decoding instead of discarding data Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegaudiodec_template/mp3on4: check that all channels have been ↵Michael Niedermayer2014-01-14
| | | | | | | | | | | | | | | | | | decoded before returnig a frame Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f80bf9a259e_5774_id5_1.mp4 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mp3on4: fail when the header check failsMichael Niedermayer2014-01-02
| | | | | | | | | | | | | | | | | | | | | | It seems the code assumed that when one out of multiple blocks fail some span of time is correct, its not, its some channels that are correct Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f44a03ba3ce_5692_id5_1.mp4 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-12-12
|\| | | | | | | | | | | | | * qatar/master: mp3adu: Set the channel layout properly Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mp3adu: Set the channel layout properlyMartin Storsjö2013-12-12
| | | | | | | | | | | | | | | | | | This fixes decoding, broken since 7e35037. This is similar to what was done for the normal mp3 decoder in f4a86bc9. Signed-off-by: Martin Storsjö <martin@martin.st>
* | libavcodec/mpegaudio: change CONFIG_FLOAT to USE_FLOATMichael Niedermayer2013-12-03
| | | | | | | | | | | | | | | | The CONFIG_ name-space is set by configure, so its better to use a different prefix here. This also unifies the encoder & decoder define that is used Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '0eeeb9647e9c92c9edfd0b18c7cb5da7ac666f85'Michael Niedermayer2013-11-24
|/ | | | | | | | | | * commit '0eeeb9647e9c92c9edfd0b18c7cb5da7ac666f85': mpegaudiodec: Consistently handle fixed/float templating Conflicts: libavcodec/Makefile Merged-by: Michael Niedermayer <michaelni@gmx.at>
* mpegaudiodec: Consistently handle fixed/float templatingDiego Biurrun2013-11-23