summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* 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>
* alac: Limit max_samples_per_frameMartin Storsjö2013-09-03
| | | | | | | | | | Otherwise buffer size calculations in allocate_buffers could overflow later, making the code think a large enough buffer actually was allocated. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Fix ATRAC codec name spellingDiego Biurrun2013-09-02
|
* pictordec: pass correct context to avpriv_request_sampleAnton Khirnov2013-09-02
| | | | | | | Fixes invalid reads. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* pictordec: break out of both decoding loops when y drops below 0Anton Khirnov2013-09-02
| | | | | | | | Otherwise picmemset can get called with negative y, resulting in an invalid write. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vcr1: add sanity checksAnton Khirnov2013-09-02
| | | | | | | Fixes invalid reads with corrupted files. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* pcm-dvd: Fix build on big endianMartin Storsjö2013-08-31
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* pcm_dvd: consolidate pieces from pcm.c and mpeg.cChristian Schmidt2013-08-31
| | | | | | | | | | | | | | | | | | | | Remove the header decoding for PCM audio from mpeg.c and the 20/24bit parts from pcm.c and merge them into a new decoder in pcm-dvd.c. The decoder has added support for samples that span multiple packets and modified 20/24bit group decoding. Both is needed to decode samples that have been generated with DVD-Lab Pro 2. The decoding of 16bit PCM and two channel 24bit is identical to before. No other samples are known to verify the correctness of the encoding this software does. The complete list of tested formats is 48kHz/16bit/2-8 channels 48kHz/24bit/2-5 channels 96kHz/16bit/2-4 channels 96kHz/24bit/2 channels Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* pcm_bluray: cosmeticsChristian Schmidt2013-08-31
|
* pcm_bluray: rename pcm-mpeg.c to pcm-bluray.cChristian Schmidt2013-08-31
| | | | | | The original idea was to collect PCM codecs that could appear in various MPEG streams in this file. Discussion in IRC lead to the conclusion that one codec per file would be better and stop the need for #ifdefs.
* x86: avcodec: Consistently structure CPU extension initializationDiego Biurrun2013-08-29
|
* x86: avcodec: Use convenience macros to check for CPU flagsDiego Biurrun2013-08-29
|
* ppc: cosmetics: Consistently format CPU flag detection invocationsDiego Biurrun2013-08-29
|
* cosmetics: Place arch initialization calls in alphabetical orderDiego Biurrun2013-08-29
|
* arm: fmtconvert: Split armv6 fmtconvert code off from vfp codeDiego Biurrun2013-08-29
|
* arm: dcadsp: Move synth filter initialization to dcadsp fileDiego Biurrun2013-08-29
|
* ppc: Add missing AltiVec cpuflag detection invocationsDiego Biurrun2013-08-29
|
* ppc: fdct: Remove vim editor settings commentDiego Biurrun2013-08-28
|
* mpegvideo: Replace arch initialization ifdeffery by standard conditionalsDiego Biurrun2013-08-28
|
* x86: rv40dsp: Move inline assembly optimizations out of YASM init sectionDiego Biurrun2013-08-28
|
* dsputil: x86: Hide arch-specific initialization detailsDiego Biurrun2013-08-28
| | | | Also give consistent names to init functions.
* ppc: Add and use convenience macro to check for AltiVec availabilityDiego Biurrun2013-08-28
|
* apedec: do not buffer decoded samples over AVPacketsRafaël Carré2013-08-28
| | | | | | | | | | | | | | | | | | | | | | | Only consume an AVPacket when all the samples have been read. When the rate of samples output is limited (by the default value of max_samples), consuming the first packet immediately will cause timing problems: - The first packet with PTS 0 will output 4608 samples and be consumed entirely - The second packet with PTS 64 will output the remaining samples (typically, a lot, that's why max_samples exist) until the decoded samples of the first packet have been exhausted, at which point the samples of the second packet will be decoded and output when av_decode_frame is called with the next packet). That means there's a PTS jump since the first packet is 'decoded' immediately, which can be seen with avplay or mplayer: the timing jumps immediately to 6.2s (which is the size of a packet). Sample: http://streams.videolan.org/issues/6348/Goldwave-MAClib.ape Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* ac3: Return proper error codesLuca Barbato2013-08-27
|
* ac3: Clean up the error pathsLuca Barbato2013-08-27
|