summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* h264: Silence warning: comparison of distinct pointer types lacks a castMichael Niedermayer2013-02-23
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* bmp: Fix warning X may be used uninitialized in this functionMichael Niedermayer2013-02-23
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* aacdec: Fix warning: initialization from incompatible pointer typeMichael Niedermayer2013-02-23
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Improve QTRLE encoding performance, no change to output file size/content.Malcolm Bechard2013-02-22
| | | | | | | Avoid searching for the lowest bulk cost for each pixel that isn't a repeat/skip. Instead store the lowest cost as we go along each pixel, and use it as needed. Signed-off-by: Malcolm Bechard <malcolm.bechard@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* exr: shorter channel buffer namesPaul B Mahol2013-02-22
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* exr: remove superfluous checkPaul B Mahol2013-02-22
| | | | | | | get_header_variable_length() already check for out of array read and returns 0 in such case. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* exr: cosmetics: reindentPaul B Mahol2013-02-22
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* exr: check if line offset table is complete only once per framePaul B Mahol2013-02-22
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* exr: support more line ordersPaul B Mahol2013-02-22
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* exr: fix overflow check in lineoffset processingPaul B Mahol2013-02-22
| | | | | | | | | | | Also read data size for raw compressions too and make sure its value is sane. Remove code that fills missing blocks with zeroes. It is marginally useful and make implementation of actually useful features harder. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* exr: merge multiple if () blocksPaul B Mahol2013-02-22
| | | | | | Remove useless comments. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* exr: check version tooPaul B Mahol2013-02-22
| | | | | | Separate version from flags. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* aac: reconfigure output on popMichael Niedermayer2013-02-22
| | | | | | Fixes Ticket1918 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* aacdec: dont pop random configurationsMichael Niedermayer2013-02-22
| | | | | | | Fixes out of array accesses Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dxva2: move _WIN32_WINNT handling to public headerMichael Niedermayer2013-02-22
| | | | | | | This removes duplicate code Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavcodec/mips/aacsbr_mips: fix ;;Michael Niedermayer2013-02-21
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* mips: optimization for float aac decoder (ps module)Mirjana Vulin2013-02-21
| | | | | Signed-off-by: Mirjana Vulin <mvulin@mips.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* mips: optimization for float aac decoder (sbr module)Mirjana Vulin2013-02-21
| | | | | Signed-off-by: Mirjana Vulin <mvulin@mips.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Fix Win64 AVX h264_deblock by not using redzone on Win64Matt Wolenetz2013-02-21
| | | | | Thanks-to: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* h264: ensure that get_format() is called when changing format but not otherwise.Michael Niedermayer2013-02-21
| | | | | | | Fixes Ticket2288 Tested-by: Stefano Pigozzi <stefano.pigozzi@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec_decode_audio4: check got_frame_ptr before handling initial skipMichael Niedermayer2013-02-21
| | | | | | | Fixes out of array accesses Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* h264: move next/last picture init to decode_slice_headerMichael Niedermayer2013-02-21
| | | | | | | | This is a regression introduced from the h264/mpegvideo split Fixes out of array reads Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ec: check that reference pictures have matching parameters before using them.Michael Niedermayer2013-02-21
| | | | | | | Fixes out of array reads Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* h264: check that luma and chroma depth matchMichael Niedermayer2013-02-21
| | | | | | | Fixes out of array access Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* exr: constify s in rle_uncompress()Paul B Mahol2013-02-21
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* exr: reset compression in decode_frame()Paul B Mahol2013-02-21
| | | | | | | This fixes decoding of images if compression changes. Regression since b040ffc84c5e. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-02-21
|\ | | | | | | | | | | | | | | | | * qatar/master: dxva2: Add missing #define to make header compile standalone arm: vp8: Add missing #includes for header to compile standalone doc: filters: Correct BNF FILTER description Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dxva2: Add missing #define to make header compile standaloneDiego Biurrun2013-02-20
| |
| * arm: vp8: Add missing #includes for header to compile standaloneDiego Biurrun2013-02-20
| |
* | brender_pix: use a grayscale palette as fallback instead of a uninitialized one.Michael Niedermayer2013-02-21
| | | | | | | | | | | | Improves: 3-0-CORPSE.PIX Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mjpegdec: check for packed rgb mjpeg.Michael Niedermayer2013-02-21
| | | | | | | | | | | | | | Fixes null pointer dereference Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Fix bits_per_coded_sample when encoding png with frame-level multithreading.Carl Eugen Hoyos2013-02-20
| | | | | | | | Fixes ticket #2290.
* | h264: Fix handling of changing reference counts between slicesMichael Niedermayer2013-02-20
| | | | | | | | | | | | | | Fixes out of array accesses Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | h264: call alloc_scratch_buffers() only once linesize is knownMichael Niedermayer2013-02-20
| | | | | | | | | | | | | | Fixes out of array accesses Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '8a11ce43d08352f7a290355ebb5b29c495ad9609'Michael Niedermayer2013-02-20
|\| | | | | | | | | | | | | | | | | | | | | * commit '8a11ce43d08352f7a290355ebb5b29c495ad9609': build: Ensure that output directories for header objects are created h264: Get rid of unnecessary casts Conflicts: common.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * h264: Get rid of unnecessary castsMartin Storsjö2013-02-20
| | | | | | | | | | | | | | This gets rid of a number of warnings about casts discarding qualifiers from the pointer target, present since 7ebfb466a. Signed-off-by: Martin Storsjö <martin@martin.st>
| * h264/svq3: Stop using draw_edgesRonald S. Bultje2013-02-19
| | | | | | | | | | | | | | | | | | | | | | Instead, only extend edges on-demand when the motion vector actually crosses the visible decoded area using ff_emulated_edge_mc(). This changes decoding time for cathedral from 8.722sec to 8.706sec, i.e. 0.2% faster overall. More generally (VP8 uses this also), low-motion content gets significant speed improvements, whereas high-motion content tends to decode in approximately the same time. Signed-off-by: Martin Storsjö <martin@martin.st>
| * h264: Don't store intra pcm samples in h->mbRonald S. Bultje2013-02-19
| | | | | | | | | | | | | | | | | | Instead, keep them in the bitstream buffer until we read them verbatim, this saves a memcpy() and a subsequent clearing of the target buffer. decode_cabac+decode_mb for a sample file (CAPM3_Sony_D.jsv) goes from 6121.4 to 6095.5 cycles, i.e. 26 cycles faster. Signed-off-by: Martin Storsjö <martin@martin.st>
| * get_bits: Return pointer to buffer that is the result of the alignmentRonald S. Bultje2013-02-19
| | | | | | | | | | | | | | This allows more transparent mixing of get_bits and whole-byte access without having to touch get_bits internals. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '2ed008204d5467be03a0a3af1e293b2f7038d0a0'Michael Niedermayer2013-02-20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2ed008204d5467be03a0a3af1e293b2f7038d0a0': h264: Add add_pixels4/8() to h264dsp, and remove add_pixels4 from dsputil Conflicts: libavcodec/dsputil.c libavcodec/h264.c libavcodec/h264_mb_template.c libavcodec/h264addpx_template.c libavcodec/h264dsp.c libavcodec/h264dsp.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * h264: Add add_pixels4/8() to h264dsp, and remove add_pixels4 from dsputilRonald S. Bultje2013-02-19
| | | | | | | | | | | | | | | | | | These functions are mostly H264-specific (the only other user I can spot is bink), and this allows us to special-case some functionality for H264. Also remove the 16-bit-coeff with >8bpp versions (unused) and merge the duplicate 32-bit-coeff for >8bpp (identical). Signed-off-by: Martin Storsjö <martin@martin.st>
| * h264chroma: Remove duplicate 9/10 bit functionsRonald S. Bultje2013-02-19
| | | | | | | | | | | | | | These functions do the same thing in 16 bit space and don't need any depth specific clipping. Signed-off-by: Martin Storsjö <martin@martin.st>
| * vp56: Remove clear_blocks call, and clear alpha plane U/V DC onlyRonald S. Bultje2013-02-19
| | | | | | | | | | | | | | | | The non-alpha and alpha-Y planes are cleared in the idct_put/add() calls. For the alpha U/V planes, we only care about the DC for entropy context prediction purposes, the rest of the data is unused. Signed-off-by: Martin Storsjö <martin@martin.st>
* | cinepak: More correct Cinepak decoder.u-bo1b@0w.se2013-02-20
| | | | | | | | | | | | | | | | change the treatment of the strip y coordinates which previously did not follow the description (nor did it behave like the binary decoder on files with absolute strip offsets). Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cinepak: simplifyMichael Niedermayer2013-02-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cinepak: Use correct colorspace.u-bo1b@0w.se2013-02-20
| | | | | | | | | | | | | | | | | | | | | | | | | | The new code is also faster and more robust. As for the performance: old decoder + conversion to rgb: fps = 2618 old decoder, without converting to rgb: fps = 4012 new decoder, producing rgb: fps = 4502 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec_align_dimensions2: Ensure cinepak has large enough buffers.Michael Niedermayer2013-02-20
| | | | | | | | | | | | | | This is partly redundant with the following patches, but its safer Found-by: u-bo1b@0w.se Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cook: check js_subband_start for validityMichael Niedermayer2013-02-20
| | | | | | | | | | | | | | Fixes out of array read Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | shorten: Fix signedness of comparissionMichael Niedermayer2013-02-19
| | | | | | | | | | | | | | Fixes out of array accessed Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | vc1dec: dont decode slices when the slice header failed to decode.Michael Niedermayer2013-02-19
| | | | | | | | | | | | | | Fixes assertion failure Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>