summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* vc1dec: Redesign the intensity compensationMichael Niedermayer2013-05-28
| | | | | | | | | | | Use the intensity-compensated reference frame for subsequent fields/B-frames. Since we currently don't change the reference frame we have to maintain lookup tables for intensity compensation in the following dependent frames. Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1dec: Shuffle field MVs after decoding, not beforeMichael Niedermayer2013-05-28
| | | | | | | | | | | | This simplifies the code since copying MVs to the reference is not needed anymore (and maybe something about fixing artifacts). Also remove the unused mv_f_last. Fixes a small number of artifacts in black_screen_VC-1.mkv and several more artifacts in other videos. Signed-off-by: Martin Storsjö <martin@martin.st>
* matroskadec: export full wavpack blocks.Anton Khirnov2013-05-28
| | | | | This allows us to get rid of demuxer-specific hacks in the decoder and will allow streamcopy from matroska once we have a wavpack muxer.
* wavpack demuxer: export full wavpack blocks.Anton Khirnov2013-05-28
| | | | | | | | Currently the demuxer shaves the blocks and exports only the information that is useful to the decoder. Exporting the blocks just as they are stored is simpler to understand and will make remuxing wavpack easier.
* wavpack: don't set sample format in init.Anton Khirnov2013-05-28
| | | | We don't know whether it will be float until we look at the data.
* wavpack: remove a useless parameter from wavpack_decode_block().Anton Khirnov2013-05-28
| | | | The decoder always returns output if an error does not occur.
* wavpack: return an error on 0-sized blocksAnton Khirnov2013-05-28
| | | | Such blocks are not valid.
* wavpack: remove a useless check.Anton Khirnov2013-05-28
| | | | | | Number of samples in the first block is checked to be strictly positive earlier in wavpack_decode_frame() and number of samples in all the other blocks is checked to be equal to the first one.
* wavpack: add an error message to a failure.Anton Khirnov2013-05-28
|
* wavpack: return 0 instead of samples count from decoding functionsAnton Khirnov2013-05-28
| | | | | The caller never cares about the number of decoded samples, so this only confuses the reader.
* wavpack: switch to planar outputAnton Khirnov2013-05-28
| | | | This simplifies the code and makes it faster.
* wavpack: drop redundant if/else blocksAnton Khirnov2013-05-28
|
* wavpack: remove the subframes codec capAnton Khirnov2013-05-28
| | | | The decoder always consumes full packets.
* smacker: add a clarification notice about audio decodingKostya Shishkov2013-05-28
|
* Revert "smackaud: clip output samples"Kostya Shishkov2013-05-27
| | | | | | Smacker audio uses overflows instead of clipping. This reverts commit 375ca0aca81be2951d9ba4731196e70e490d3cdf.
* fix scalarproduct_and_madd_int16_altivec() for orders > 16Kostya Shishkov2013-05-26
| | | | the second and third sources were incremented only by half of the needed size
* Move get_logical_cpus() from lavc/pthread to lavu/cpu.Anton Khirnov2013-05-24
| | | | | It will be useful in lavfi, and could conceivably be useful to the user applications as well.
* w32pthreads: move from lavc to compat/Anton Khirnov2013-05-24
| | | | It will be used in other places than lavc.
* h264_parser: Set field_order and picture_structure.Yusuke Nakamura2013-05-24
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avcodec: Add picture structure information to AVCodecParserContext.Yusuke Nakamura2013-05-24
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wavpack: check packet size earlyLuca Barbato2013-05-22
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* wavpack: use bytestream2 in wavpack_decode_blockLuca Barbato2013-05-22
| | | | | | | Prevent most out of buffer reads. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mpegvideo: unref buffers in ff_mpeg_unref_picture on frame size changesJanne Grunau2013-05-22
| | | | | | ff_mpeg_unref_picture clears the flag indicating that the frame needs to be reallocated after a frame size change. Since we have now reference counted buffers we can unref the buffers immediately.
* proresdec: simplify slice component offsets handlingKostya Shishkov2013-05-21
|
* mjpegdec: validate parameters in mjpeg_decode_scan_progressive_acLuca Barbato2013-05-21
| | | | | | | Prevent out of buffer write when decoding broken samples. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* ljpeg: use the correct number of components in yuvLuca Barbato2013-05-20
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mjpeg: Validate sampling factorsLuca Barbato2013-05-20
| | | | | | | They must be non-zero. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mpegvideo: unref old current_picture before allocating a new oneJanne Grunau2013-05-19
| | | | | | Allows decoding with only three frame buffers with frame reference counting. Fixes VAAPI based decoding in vlc which uses only three frame buffers for the mpegvideo-based codecs.
* vorbis: fallback to normal division instead of crashingLuca Barbato2013-05-19
| | | | | | | | The use of ff_inverse speeds up slightly arches + compilers that do not provide a division faster than the whole machinery, such as ppc32 + gcc4.7, but has operational limits. Drop the always-enable assert and provide a fallback.
* vorbis: simplify the inner loop in setup_classifsLuca Barbato2013-05-19
|
* vorbis: use normal integer values for iteratorsLuca Barbato2013-05-19
| | | | No need to use fixed-size integers.
* vorbis: refactor vorbis_residue_decode_internalLuca Barbato2013-05-19
|
* win32: Do not use GetProcAddress when compiled for Vista+Jean-Baptiste Kempf2013-05-19
| | | | | | Instead link directly to the condition variable functions. Signed-off-by: Martin Storsjö <martin@martin.st>
* wavpack: validate samples size parsed in wavpack_decode_blockLuca Barbato2013-05-18
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* wavpack: return meaningful errorsLuca Barbato2013-05-18
| | | | And forward those that were already meaningful.
* wavpack: K&R formatting cosmeticsLuca Barbato2013-05-18
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Escape 130 (RPL) decoderEli Friedman2013-05-18
| | | | | | | | Some fixes provided by Paul B Mahol <onemda@gmail.com> and Michael Niedermayer <michaelni@gmx.at> and me. Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* prores: decode alpha plane when it's presentKostya Shishkov2013-05-18
|
* lavc doxy: add avcodec.h to the libavcodec group.Anton Khirnov2013-05-17
|
* jpegls: check the scan offsetLuca Barbato2013-05-17
| | | | | | | Prevent an out of array bound write. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* jpegls: factorize return pathsLuca Barbato2013-05-17
|
* jpegls: return meaningful errorsLuca Barbato2013-05-17
|
* sparc: VIS mnemonicsMichael Kostylev2013-05-17
| | | | | | | | | | | | Currently, if VIS is enabled by configure, it will also be enabled at run-time regardless of its support in the hardware. Thus, masking VIS usage as it is done in vis.h by constructing binary instructions is pointless. Using normal VIS mnemonics in inline assembly allows to take advantage of automatic register allocation, gets rid of register variables, which are unsupported by suncc for SPARC, and improves code readability. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpegvideo: allocate sufficiently large scratch buffer for interlaced vidJindrich Makovicka2013-05-17
| | | | | | | | | | | | | | | | MPV_decode_mb_internal needs 3 * 16 * linesize bytes of scratch buffer For interlaced content, linesize is multiplied by two after the allocation of the scratch buffer, and the dest_cr pointer ends past the buffer. This patch makes ff_mpv_frame_size_alloc allocate a total of (aligned line_size) * 2 * 16 * 3 bytes, which suffices even for the interlaced case. CC:libav-stable@libav.org Signed-off-by: Jindrich Makovicka <makovick@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* pthread: reindentAnton Khirnov2013-05-17
|
* lavc/pthread: remove obsolete checksAnton Khirnov2013-05-17
| | | | | | Those were useful when avcodec_thread_init() was a public functions. It was deprecated and removed some time ago, so those checks are not needed anymore.
* Apple Intermediate Codec decoderKostya Shishkov2013-05-17
|
* vc1dec: Add support for interlaced B-framesSebastian Sandberg2013-05-17
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* sparc: Eliminate dead code in VIS acceleration macrosMichael Kostylev2013-05-16
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* flacdec: drop unnecessary assertLuca Barbato2013-05-16
| | | | The condition cannot happen anymore.