summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avformat/sierravmd: Check avio_read return valueMichael Niedermayer2013-12-20
| | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f82af392dae_1848_HR060606.VMD Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* remuxing .opus files to .webm codec->delay must be copied tooJan Gerber2013-12-19
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/nistspheredec: check sscanf() success before using the resultMichael Niedermayer2013-12-19
| | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f935c3c6c1a_7413_nist_pcms8.nist Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/iff: warn about truncated input to decode_byterun() and clear ↵Michael Niedermayer2013-12-19
| | | | | | | | | 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>
* rpl: Dont fill the index with entries that failed to be parsedMichael Niedermayer2013-12-19
| | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7fd10a199a3c_6204_landing.rpl Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavformat/mpegts: expose raw packet sizeLeandro Dorileo2013-12-19
| | | | | | | | | We cannot easily determine if an mpeg TS's packet size is DVHS, FEC or so on, for that we need to expose the internal raw_packet_size field. Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/dxa: check avio_read() returnMichael Niedermayer2013-12-19
| | | | | | | Fixes use of uninitialized memory Fixes msan_uninit-mem_7fd4d4323ddd_2453_MUSOSP1.dxa 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-19
| | | | | | | 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-19
| | | | | | | 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-19
| | | | | | | 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>
* lavfi/deshake_opencl: optimze transform filterLenny Wang2013-12-19
| | | | | Reviewed-by: Wei Gao <highgod0401@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/swfdec: clear 4 bytes at the end of a packet if they are not ↵Michael Niedermayer2013-12-19
| | | | | | | | | initialized Fixes use of uninitialized memory Fixes part of msan_uninit-mem_7f055dd0ab1b_9558_videopop_guitar_300k.swf Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/swfdec: check avio_read() return codeMichael Niedermayer2013-12-19
| | | | | | | Fixes use of uninitialized memory Fixes part of msan_uninit-mem_7f055dd0ab1b_9558_videopop_guitar_300k.swf 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-19
|\ | | | | | | | | | | | | | | | | | | * qatar/master: fate: Explicitly specify the pixel format for the pngparser test Conflicts: tests/fate/image.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * fate: Explicitly specify the pixel format for the pngparser testMartin Storsjö2013-12-18
| | | | | | | | | | | | | | | | | | | | The RGB32 pixel format is RGBA/BGRA depending on target endianness - make sure to convert it to one specific format for the framecrc tests. This fixes the pngparser fate test on big endian. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avformat/swfdec: check avio_read() return codeMichael Niedermayer2013-12-19
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes msan_uninit-mem_7f90d9cce964_9558_videopop_guitar_300k.swf 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-19
| | | | | | | | | | | | 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-19
| | | | | | | | | | | | | | 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-19
| | | | | | | | | | | | | | 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>
* | avformat/ipmovie: Check palette size in OPCODE_SET_PALETTEMichael Niedermayer2013-12-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/ipmovie: Check that OPCODE_SET_PALETTE size is large enoughMichael Niedermayer2013-12-18
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7fec1f40656c_4819_descent3_level5_16bit_partial.mve Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/ipmovie: remove superflous ()Michael Niedermayer2013-12-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/ipmovie: Check that the OPCODE_INIT_AUDIO_BUFFERS size is large enoughMichael Niedermayer2013-12-18
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f75b03c1f19_4820_descent3_level5_16bit_partial.mve Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/pngdec: fix signed overflowMichael Niedermayer2013-12-18
| | | | | | | | | | | | fixes fate ftrapv failure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-12-18
|\| | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Prepare release notes for Libav 10 "Eks" Conflicts: doc/RELEASE_NOTES Not merged because all that stuff has been in past releases Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Prepare release notes for Libav 10 "Eks"Anton Khirnov2013-12-18
| | | | | | | | Additional editing by Diego Biurrun
* | avformat/isom: zero MPEG4AudioConfig to avoid leaving fields uninitializedMichael Niedermayer2013-12-18
| | | | | | | | | | | | | | Fixes: use of uninitialized memory Fixes: msan_uninit-mem_7f392c443e0d_1433_Crowd_Applause_01.caf Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/nuv: zero buffer paddingMichael Niedermayer2013-12-18
| | | | | | | | | | | | | | 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-18
| | | | | | | | | | | | | | 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>
* | lavf/concatdec: fix crash in case a file in script cannot be openedStefano Sabatini2013-12-18
| |
* | lavf/segment: increase logging level for message with segment start informationStefano Sabatini2013-12-18
| | | | | | | | Help debugging.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-12-18
|\| | | | | | | | | | | | | | | * qatar/master: png_parser: Fix parsing on big endian See: 3d42addf336739a69aee47891413a46e4f64995b Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * png_parser: Fix parsing on big endianMartin Storsjö2013-12-18
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge commit 'd8fd183683b7495566b7e510a6536ae2efe8dfed'Michael Niedermayer2013-12-18
|\| | | | | | | | | | | | | | | * commit 'd8fd183683b7495566b7e510a6536ae2efe8dfed': vc1: Fix mb_height for field pictures See: 017e234c204f8ffb5f85a073231247881be1ac6f Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vc1: Fix mb_height for field picturesMichael Niedermayer2013-12-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>
* | avcodec/aacdec: default to non-wide 7.1 in non-strict modeAnssi Hannula2013-12-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Revert "Merge commit '3bc2e89c76e88ae6f1fd5287e0b11abcfc3c601c'" (Bump ↵Michael Niedermayer2013-12-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libavutil major version to account for the LLS API/ABI changes.) This reverts commit 792845e436ddc5f3ce11ba02535a3372919061f2, reversing changes made to 1d6666a6b828cca6c6b355a9b62f25607b1ced08. Bumping libavutil requires all libraries that use libavutil to have their major version bumped (yes breakage has been confirmed this is not a hypotheses) One case of breakage is due to new types being added to AVOptions and applications that linked to old libavutil and libswresample then trying to use old libavutil (its soname changed so the old isnt updated) and new swresample (its soame didnt change so it is updated) the new swresample contains AVOption types that the old libavutil doesnt know of thus the application attempting to access these avoptions fails AVOptions are used by all libs so the issue can potentially happen with any other lib, libswresample was just the first that showed the problem ive not checked if the other libs are affected currently by the same issue or not Also in addition to AVOptions, AVFrames are also defined in libavutil, bumping it without all libs that use AVFrames could lead to serious inconsistencies when 2 libs/app end up using 2 different libavutils The alternative of bumping all is still possible after this revert, if it turns out to be the preferred solution
* | avcodec/vc1dec: use av_mallocz for luma_mvMichael Niedermayer2013-12-17
| | | | | | | | | | | | | | 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 remote-tracking branch 'qatar/master'Michael Niedermayer2013-12-17
|\| | | | | | | | | | | | | * qatar/master: apidoc: fix warning from stereo3d.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * apidoc: fix warning from stereo3d.hVittorio Giovara2013-12-17
| |
* | Merge commit '3d9fc21e593aa89b5877bd739268499b079052f2'Michael Niedermayer2013-12-17
|\| | | | | | | | | | | | | | | | | | | * 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-17
| | | | | | | | Directly set the fields when necessary.
* | Merge commit '3a149e23d37f06d49ab0bb013a3b9cb0224bba5c'Michael Niedermayer2013-12-17
|\| | | | | | | | | | | | | | | | | | | * 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-17
| | | | | | | | | | | | Directly set the fields when necessary. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit 'cfb4ee30977732674d30c20e93a761c33c743972'Michael Niedermayer2013-12-17
|\| | | | | | | | | | | | | | | | | | | * commit 'cfb4ee30977732674d30c20e93a761c33c743972': fate: add a pngparser test Conflicts: tests/fate/image.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * fate: add a pngparser testVittorio Giovara2013-12-17
| |
* | Merge commit 'eddff165b4cdc1f064245a4bad6f4265581c12b1'Michael Niedermayer2013-12-17
|\| | | | | | | | | | | | | * commit 'eddff165b4cdc1f064245a4bad6f4265581c12b1': fate: add utility function to test parser, demuxer, and decoder Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * fate: add utility function to test parser, demuxer, and decoderVittorio Giovara2013-12-17
| |
* | Merge commit '6fd99e78def3c795bdd0bc31f3ae0998d24bc94c'Michael Niedermayer2013-12-17
|\| | | | | | | | | | | | | | | | | | | | | | | | | * 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-17
| | | | | | | | Useful for reading png images from a pipe.