summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* wnv1: Make sure the input packet is large enoughMartin Storsjö2013-09-22
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: remove an unused static constantVittorio Giovara2013-09-20
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* dcadec: Validate the lfe parameterMartin Storsjö2013-09-20
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* fraps: Make the input buffer size checks more strictMartin Storsjö2013-09-19
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* svq3: Avoid a division by zeroMartin Storsjö2013-09-19
| | | | | | | | | | If the height is zero, the decompression will probably end up failing due to not fitting into the allocated buffer later anyway, so this doesn't need any more elaborate check. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* qpeg: Add checks for running out of rows in qpeg_decode_interMartin Storsjö2013-09-19
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegaudiodec: Validate that the number of channels fits at the given offsetMartin Storsjö2013-09-19
| | | | | | | | This is similar to the fix in 35cbc98b. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* asvdec: Verify the amount of extradataMartin Storsjö2013-09-19
| | | | | | | | The init function reads one byte of extradata. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* rv34: Fix a memory leak on errorsMartin Storsjö2013-09-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rv10: Validate the dimensions set from the containerMartin Storsjö2013-09-19
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* aacdec: Add support for LD (Low Delay) AACAlex Converse2013-09-18
|
* aacdec: Add support for Error Resilience syntax.Alex Converse2013-09-18
| | | | This does not add support for any error resilience tools.
* Add a WebP decoderJustin Ruggles2013-09-18
| | | | | Container and lossy decoding by Aneesh Dogra <aneesh@sugarlabs.org> Lossless decoding by Justin Ruggles <justin.ruggles@gmail.com>
* lavc: add ff_u8_to_s8() for safe type punning of uint8_t to int8_tJustin Ruggles2013-09-18
|
* twinvqdec: Check the ibps parameter separatelyMartin Storsjö2013-09-17
| | | | | | | | | This is required, since invalid parameters actually could pass the switch check below. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* dca_parser: Handle changes in DCA frame sizeJohn Stebbins2013-09-17
| | | | | | | | A change in framesize caused a perpetual loss of synchronization. So read (and use) the frame size from the frame header instead of setting it only once. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* jpeg2000dec: Add more checks when parsing headersMartin Storsjö2013-09-17
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* ffv1: Make sure at least one slice context is initializedMartin Storsjö2013-09-17
| | | | | | | | | This avoids crashes when initializing the range coder for the first slice context. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* eacmv: Make sure a reference frame exists before referencing itMartin Storsjö2013-09-17
| | | | | | | | | This is similar to an existing check for the second-last frame from 062421e3. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* truemotion2: Use av_freep properly in an error pathMartin Storsjö2013-09-17
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mpeg4videodec: Check the width/height in mpeg4_decode_sprite_trajectoryMartin Storsjö2013-09-17
| | | | | | | | This avoids a potential division by zero. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* ivi_common: Make sure color planes have been initializedMartin Storsjö2013-09-17
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* rv34: Check the return value from ff_rv34_decode_initMartin Storsjö2013-09-17
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mace: Make sure that the channel count is set to a valid valueMartin Storsjö2013-09-17
| | | | | | | | Also return a proper error code. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* svq3: Check for any negative return value from ff_h264_check_intra_pred_modeMartin Storsjö2013-09-17
| | | | | | | | Also pass on any returned error code. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: Add an xmm clobbering wrapper for avcodec_encode_video2Martin Storsjö2013-09-16
| | | | | | | This is required since 187105ff8 when we started trying to wrap this function as well. Signed-off-by: Martin Storsjö <martin@martin.st>
* Fix references to deleted avcodec_encode_video() functionVittorio Giovara2013-09-16
|
* avpacket: Fix error checking in packet_allocMartin Storsjö2013-09-16
| | | | | | | | | | Previously the wrong buffer pointer was checked, when buf instead of *buf was checked. But checking the return value instead is even better. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* vp3: Check the framerate for validityMartin Storsjö2013-09-16
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* proresdec: Properly make sure an index doesn't run past the limitMartin Storsjö2013-09-16
| | | | | | | | | If idx equaled num_coeffs - 1 on entry to the loop, the previous check failed to break out of the loop. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* cavsdec: Make sure a sequence header has been decoded before decoding picturesMartin Storsjö2013-09-16
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mathops/x86: work around inline asm miscompilation with GCC 4.8.1Hendrik Leppkes2013-09-15
| | | | | | | | The volatile is not required here, and prevents a miscompilation with GCC 4.8.1 when building on x86 with --cpu=i686 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* pcm-dvd: Minor leftoversChristian Schmidt2013-09-13
| | | | Drop a pointless branch in uninit and use the compact copyright.
* pcm-dvd: Support channel configuration changesChristian Schmidt2013-09-13
| | | | | | | | | | The sample buffering logic does not take into account that the blocksize could change. Reset the buffer if the channel configuration changes, since if there are leftover samples, it is most likely a broken or misconcatenated stream. This could lead to negative numbers for missing_samples during decoding. Thanks to Michael Niedermeyer for pointing these out.
* g2meet: Allocate cursor buffers large enough to fit the aligned widthMartin Storsjö2013-09-12
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* aic: Validate values read from the bitstreamMartin Storsjö2013-09-12
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* zmbvdec: Check the buffer size for uncompressed dataMichael Niedermayer2013-09-12
| | | | | | | | | Also don't pointlessly set the buffer size to 1 after copying one packet. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* shorten: Break out of loop looking for fmt chunk if none is foundMartin Storsjö2013-09-12
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* shorten: Use a checked bytestream reader for the wave headerMartin Storsjö2013-09-12
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* smacker: Free memory properly if the init function failsMartin Storsjö2013-09-11
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* smacker: Make sure we don't fill in huffman codes out of rangeMartin Storsjö2013-09-11
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* smacker: Check malloc return valuesMartin Storsjö2013-09-11
| | | | | | Also try to free local allocations on errors. Signed-off-by: Martin Storsjö <martin@martin.st>
* Drop pointless directory name prefixes from #includes in the current dirDiego Biurrun2013-09-10
|
* nuv: check ff_rtjpeg_decode_frame_yuv420 return valueLuca Barbato2013-09-07
| | | | CC: libav-stable@libav.org
* avcodec: Stop exporting the removed audio_resample* symbolsDiego Biurrun2013-09-05
|
* mpeg12enc: K&R formatting cosmeticsVittorio Giovara2013-09-05
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpeg12enc: drop forward declarationsVittorio Giovara2013-09-05
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpegvideo: Avoid 32-bit wrapping of linesize multiplicationsMartin Storsjö2013-09-04
| | | | | | | | | This makes sure that linesize * start_y doesn't overflow, so that emulated_edge_mc can get back the original value if needed. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mjpegb: Detect changing number of planes in interlaced videoMichael Niedermayer2013-09-03
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* alac: Check that the channels fit at the given offsetMartin Storsjö2013-09-03
| | | | | | | | | | | | | The code tries to decode a number of channels at the offset given by the ff_alac_channel_layout_offsets table. Even if the number of channels decoded so far doesn't exceed the total number of channels, we need to check that we actually can decode that number of channels at this offset as well. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>