aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'b254490bdabb21bd517c05b1a68717f9952ac8c4'Michael Niedermayer2013-12-202-0/+27
|\ | | | | | | | | | | | | * commit 'b254490bdabb21bd517c05b1a68717f9952ac8c4': vc1: arm: Add NEON no_rnd chroma MC Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vc1: arm: Add NEON no_rnd chroma MCMason Carter2013-12-202-0/+27
| | | | | | | | | | | | | | | | Apply David Conrad's old patch to the modern codebase. http://ffmpeg.org/pipermail/ffmpeg-devel/2009-April/059877.html Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '832e19063209a5f355af733d1a45f5051f49ce33'Michael Niedermayer2013-12-207-0/+1334
|\| | | | | | | | | | | | | * commit '832e19063209a5f355af733d1a45f5051f49ce33': vc1: arm: Add NEON assembly Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vc1: arm: Add NEON assemblyMason Carter2013-12-207-0/+1334
| | | | | | | | | | | | | | | | | | | | | | | | | | For: ff_vc1_inv_trans_{8,4}x{8,4}_{dc_,}neon ff_put_pixels8x8_neon ff_put_vc1_mspel_mc{0,1,2,3}{0,1,2,3}_neon (except for 00) Based on ARM assembly code in libavcodec/arm by Rob Clark and Mans Rullgard. Signed-off-by: Martin Storsjö <martin@martin.st>
| * png_parser: Fix parsing on big endianMartin Storsjö2013-12-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Since pc.state is populated by shifting in from the end of the 32 bit word, the content within pc.state is already in native endian and should not be read with the AV_R{L,B} functions. This was already done correctly for state64 above. This fixes the fate-corepng test on big endian. Signed-off-by: Martin Storsjö <martin@martin.st>
| * vc1: Fix mb_height for field picturesMichael Niedermayer2013-12-172-14/+17
| | | | | | | | | | | | | | | | | | | | Tables are always allocated now with sufficient space for either progressive or interlaced content. The alternative would be to detect a change and reallocate. This fixes decoding of a sample. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avformat/smacker: check for format mismatch more completelyMichael Niedermayer2013-12-201-1/+1
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f6e83322950_9769_wetlogo.smk Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegvideo_enc: fix frame skipping with intra only codecsMichael Niedermayer2013-12-202-14/+17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegvideo_enc: fix integer overflow with -skip_exp >= 2Michael Niedermayer2013-12-201-3/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/iff: warn about truncated input to decode_byterun() and clear ↵Michael Niedermayer2013-12-191-0/+4
| | | | | | | | | | | | | | | | | | remaining output Fixes use of uninitialized memory Fixes: msan_uninit-mem_7fe205e395ed_8988_test.iff Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/dxa: check for overread in decode_13()Michael Niedermayer2013-12-191-2/+8
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes part of msan_uninit-mem_7f5ea8284fb7_8317_scummvm.dxa Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/dxa: add padding to decomp_bufMichael Niedermayer2013-12-191-1/+3
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes part of msan_uninit-mem_7f5ea8284fb7_8317_scummvm.dxa Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flashsv: check decode_hybrid() for overreadMichael Niedermayer2013-12-191-2/+9
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f906558274e_268_14_244486_2009_04_28.flv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/interplayvideo: Check that enough data is available for opcode_0x7/8/DMichael Niedermayer2013-12-191-0/+15
| | | | | | | | | | | | Fixes hypothetical use of uninitialized memory, no sample available Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/interplayvideo: Check that enough data is available for opcode_0x9Michael Niedermayer2013-12-191-0/+5
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7fd5185b45df_5895_interplay-logo-2MB.mve Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/interplayvideo: Check that enough data is available for opcode_0xAMichael Niedermayer2013-12-191-0/+5
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f90e5be6b30_3965_baldursgate_camp.mve Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/pngdec: fix signed overflowMichael Niedermayer2013-12-181-1/+1
| | | | | | | | | | | | fixes fate ftrapv failure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/nuv: zero buffer paddingMichael Niedermayer2013-12-181-0/+1
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes msan_uninit-mem_7f4a141261de_7405_nirvana.nuv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/dirac_dwt: initialize support value for fidelity waveletMichael Niedermayer2013-12-181-0/+1
| | | | | | | | | | | | | | Avoids use of uninitialized memory Fixes: msan_uninit-mem_7f15e1988a6e_2748_RL_420p_ffdirac.drc Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/aacdec: default to non-wide 7.1 in non-strict modeAnssi Hannula2013-12-181-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AAC specification has 7.1(wide) as a default layout for 8-channel streams (channel config 7). However, at least Nero AAC encoder encodes non-wide 7.1 streams using the default channel config 7, mapping the side channels of the original audio stream to the second AAC_CHANNEL_FRONT pair in the AAC stream. Similarly, e.g. FAAD decodes the second AAC_CHANNEL_FRONT pair as side channels, therefore decoding the incorrect streams as if they were correct (and as the encoder intended). FFmpeg currently decodes such files by-the-spec, i.e. after decoding the original front pair will be in AV_CH_FRONT_x_OF_CENTER and the original side pair will be in AV_CH_FRONT_x. As actual intended 7.1(wide) streams are very rare while misencoded 7.1 files actually exist in the wild, default to assuming a 7.1 layout was intended unless in strict mode. Fixes playback of e.g. 8_Channel_ID.m4a in samples. Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/vc1dec: use av_mallocz for luma_mvMichael Niedermayer2013-12-171-1/+1
| | | | | | | | | | | | | | This ensures that no mvs are uninitialized at the time of loop filtering Fixes: msan_uninit-mem_7f0b6dfe293c_2786_SA20021.vc1 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '3d9fc21e593aa89b5877bd739268499b079052f2'Michael Niedermayer2013-12-171-21/+12
|\| | | | | | | | | | | | | | | | | | | * commit '3d9fc21e593aa89b5877bd739268499b079052f2': h264: Refactor decode_frame_packing_arrangement Conflicts: libavcodec/h264_sei.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * h264: Refactor decode_frame_packing_arrangementVittorio Giovara2013-12-171-16/+7
| | | | | | | | Directly set the fields when necessary.
* | Merge commit '3a149e23d37f06d49ab0bb013a3b9cb0224bba5c'Michael Niedermayer2013-12-171-15/+7
|\| | | | | | | | | | | | | | | | | | | * commit '3a149e23d37f06d49ab0bb013a3b9cb0224bba5c': hevc: Refactor decode_nal_sei_frame_packing_arrangement Conflicts: libavcodec/hevc_sei.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hevc: Refactor decode_nal_sei_frame_packing_arrangementLuca Barbato2013-12-171-12/+7
| | | | | | | | | | | | Directly set the fields when necessary. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '6fd99e78def3c795bdd0bc31f3ae0998d24bc94c'Michael Niedermayer2013-12-173-26/+26
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit '6fd99e78def3c795bdd0bc31f3ae0998d24bc94c': png: add a standalone parser Conflicts: Changelog libavcodec/png_parser.c libavcodec/version.h See: 2ee6dca3b8f40132be5c8b77e3700a9e3f26c382 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * png: add a standalone parserPeter Holik2013-12-174-2/+128
| | | | | | | | Useful for reading png images from a pipe.
* | avcodec/utils: drop 2 dependancies on sizeof(AVFrame)Michael Niedermayer2013-12-171-10/+16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libvorbisenc: drop dependancy on sizeof(AVFrame)Michael Niedermayer2013-12-171-1/+0
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flashsv2enc: drop dependancy on sizeof(AVFrame)Michael Niedermayer2013-12-171-12/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/j2kenc: drop dependancy on sizeof(AVFrame)Michael Niedermayer2013-12-171-9/+8
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libopenjpegenc: drop dependancy on sizeof(AVFrame)Michael Niedermayer2013-12-171-10/+12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mjpegenc: drop dependancy on sizeof(AVFrame)Michael Niedermayer2013-12-171-5/+9
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/msvideo1enc: drop dependancy on sizeof(AVFrame)Michael Niedermayer2013-12-171-12/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/diracdec: avoid depending on sizeof(AVFrame)Michael Niedermayer2013-12-171-46/+57
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/svq3: set last/next frames to defaults before useMichael Niedermayer2013-12-171-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: implement avcodec_alloc_frame() through av_alloc_frame()Michael Niedermayer2013-12-171-9/+1
| | | | | | | | | | | | | | This ensures that theres just one AVFrame allocation function and libs dont produce multiple AVFrame variants after a minor lib update Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: use av_frame_unref() to set frame defaultsMichael Niedermayer2013-12-171-13/+1
| | | | | | | | | | | | This ensures that the code isnt duplicated and cant become out of sync Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/gifdec: check that the correct number of bytes was decodedMichael Niedermayer2013-12-171-1/+5
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f084c646637_9261_top_title_green_frog.gif Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: av_register_codec & hwaccel() that work in O(1) timeMichael Niedermayer2013-12-171-2/+6
| | | | | | | | | | | | | | | | | | | | | | Its possible to implement this with a few lines less code but it then would flip the order of the list and require registration of external codecs to be done first, also it could break user applications due to this. Thus to maintain ABI this slighty more complex solution is used. Reviewed-by: Stefano Sabatini Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libx264: Set colorspace details correctlyTorsten Jager2013-12-161-1/+9
| | | | | | | | | | | | After adding colorspace support to xine-lib, I insist in proper settings within media files at least when they do not follow that implicit SD/HD routine.
* | avcodec/mlpdec: check that streamtype matches the codecMichael Niedermayer2013-12-161-0/+12
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes msan_uninit-mem_7f126c8ed1ac_5945_issue1731_nonpublic.mpg Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/wmalosslessdec: completely initialize contains_subframeMichael Niedermayer2013-12-161-3/+3
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f60c46325d7_6415_luckynight.wma Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpeg12dec: Don't create side data when current picture ptr is NULL.Tomer Barletz2013-12-161-1/+5
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/bink: use av_mallocz for dataMichael Niedermayer2013-12-151-1/+1
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes msan_uninit-mem_7fe8a5fd759d_2838_SPECTRE.BIK Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/msmpeg4dec: initialize dir_ptr in error casesMichael Niedermayer2013-12-151-0/+2
| | | | | | | | | | | | | | Fixes use of uinitialized memory Fixes: msan_uninit-mem_7f01b8799186_7278_msnaudio.asf Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/msmpeg4dec: print error in case of invalid vlc in msmpeg4_decode_dc ↵Michael Niedermayer2013-12-151-1/+3
| | | | | | | | | | | | for version <=2 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'cus/stable'Michael Niedermayer2013-12-151-31/+24
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | * cus/stable: libzvbi-teletextdec: set bitmap teletext canvas dimensions libzvbi-teletextdec: add chopped top row size to y offset libzvbi-teletextdec: use defined constants for bitmap char width and height libzvbi-teletextdec: cosmetics Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | libzvbi-teletextdec: set bitmap teletext canvas dimensionsMarton Balint2013-12-141-0/+5
| | | | | | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
| * | libzvbi-teletextdec: add chopped top row size to y offsetMarton Balint2013-12-141-1/+1
| | | | | | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>