summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* wmalosslessdec: fix mclms_coeffs* array sizeMichael Niedermayer2014-08-05
| | | | | | | | | Fixes corruption of context Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org Bug-Id: CVE-2014-2098 Signed-off-by: Anton Khirnov <anton@khirnov.net>
* configure: check $as first before using $gas as GNU asJanne Grunau2014-08-05
| | | | | | | | llvm's integrated assembler supports the AArch64 asm on darwin since August 2014. So check $as first before using gas-preprocessor.pl via $gas. Makes the checks specific for that the architecture specific asm needs. PPC Altivec and AArch64 needs on ':vararg' for macro arguments. Arm needs in addition the '.altmacro' directive.
* fate: generate tests/pixfmts.mak for all targets requiring itJanne Grunau2014-08-05
| | | | | | All subtargets which should run the fate-filter-pixdesc% need to generate and include tests/pixfmts.mak. Most noteable missing target was fate itself.
* movenc: Add option to disable nero chaptersJohn Stebbins2014-08-05
| | | | | | | And add flag to muxer documentation. Nero chapters break some taggers (mp3tag and iTunes). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: Add HEVC definitionsFemi Adeyemi-Ejeye2014-08-05
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: Define the section length with a constantLuca Barbato2014-08-04
| | | | | The specification says the value is expressed in 10 bits including the 4-byte CRC.
* vc-1: Optimise parser (with special attention to ARM)Ben Avison2014-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous implementation of the parser made four passes over each input buffer (reduced to two if the container format already guaranteed the input buffer corresponded to frames, such as with MKV). But these buffers are often 200K in size, certainly enough to flush the data out of L1 cache, and for many CPUs, all the way out to main memory. The passes were: 1) locate frame boundaries (not needed for MKV etc) 2) copy the data into a contiguous block (not needed for MKV etc) 3) locate the start codes within each frame 4) unescape the data between start codes After this, the unescaped data was parsed to extract certain header fields, but because the unescape operation was so large, this was usually also effectively operating on uncached memory. Most of the unescaped data was simply thrown away and never processed further. Only step 2 - because it used memcpy - was using prefetch, making things even worse. This patch reorganises these steps so that, aside from the copying, the operations are performed in parallel, maximising cache utilisation. No more than the worst-case number of bytes needed for header parsing is unescaped. Most of the data is, in practice, only read in order to search for a start code, for which optimised implementations already existed in the H264 codec (notably the ARM version uses prefetch, so we end up doing both remaining passes at maximum speed). For MKV files, we know when we've found the last start code of interest in a given frame, so we are able to avoid doing even that one remaining pass for most of the buffer. In some use-cases (such as the Raspberry Pi) video decode is handled by the GPU, but the entire elementary stream is still fed through the parser to pick out certain elements of the header which are necessary to manage the decode process. As you might expect, in these cases, the performance of the parser is significant. To measure parser performance, I used the same VC-1 elementary stream in either an MPEG-2 transport stream or a MKV file, and fed it through avconv with -c:v copy -c:a copy -f null. These are the gperftools counts for those streams, both filtered to only include vc1_parse() and its callees, and unfiltered (to include the whole binary). Lower numbers are better: Before After File Filtered Mean StdDev Mean StdDev Confidence Change M2TS No 861.7 8.2 650.5 8.1 100.0% +32.5% MKV No 868.9 7.4 731.7 9.0 100.0% +18.8% M2TS Yes 250.0 11.2 27.2 3.4 100.0% +817.9% MKV Yes 149.0 12.8 1.7 0.8 100.0% +8526.3% Yes, that last case shows vc1_parse() running 86 times faster! The M2TS case does show a larger absolute improvement though, since it was worse to begin with. This patch has been tested with the FATE suite (albeit on x86 for speed). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* vc-1: Add platform-specific start code search routine to VC1DSPContext.Ben Avison2014-08-04
| | | | | | | Initialise VC1DSPContext for parser as well as for decoder. Note, the VC-1 code doesn't actually use the function pointer yet. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* h264: Move start code search functions into separate source files.Ben Avison2014-08-04
| | | | | | This permits re-use with parsers for codecs which use similar start codes. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* fate: Only generate tests/pixfmts.mak if some pixfmts fate test is runDiego Biurrun2014-08-04
|
* avcodec: Suppress deprecation warnings from DTG code scheduled for removalDiego Biurrun2014-08-04
|
* fate: png-suiteVittorio Giovara2014-08-04
| | | | Every supported format is converted to RGB.
* tiff: support reading gray+alpha at 8 bitsCarl Eugen Hoyos2014-08-04
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* tiff: support reading gray+alpha at 16 bitsVittorio Giovara2014-08-04
|
* png: support reading gray+alpha at 16 bitsVittorio Giovara2014-08-04
|
* png: disable broken MMX/SIMD code for bpp <= 2Vittorio Giovara2014-08-04
| | | | | The decoder was producing different results when ASM was disabled. Based on a long debug session with Kostya.
* swscale: support AV_PIX_FMT_YA16 as inputVittorio Giovara2014-08-04
| | | | Based on a long debug session with Kostya.
* avutil: add AV_PIX_FMT_YA16 pixel formatVittorio Giovara2014-08-04
|
* avutil: rename AV_PIX_FMT_Y400A to AV_PIX_FMT_YA8Vittorio Giovara2014-08-04
| | | | | | | The rationale is that you have a packed format in form <greyscale sample> <alpha sample> <greyscale sample> <alpha sample> and shortening greyscale to 'G' might make one thing about Greenscale instead. An alias pixel format and color space name are provided for compatibility.
* avutil: add alias names for gray 8/16 colour spacesVittorio Giovara2014-08-04
|
* pixdesc: Support pixelformat aliasesLuca Barbato2014-08-04
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* swscale: correctly pad destination buffer in rgb conversionKostya Shishkov2014-08-04
| | | | | | | Bug-Id: 772 CC: libav-stable@libav.org Found-By: Justin Ruggles <justin.ruggles@gmail.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* fate: explicitly set the default THREADS valueJanne Grunau2014-08-04
| | | | | | This makes the default of '1' more explicit than defaulting to '1' in fate-run.sh and regression-funcs.sh if THREADS is not set. Fixes the reported thread count in fate-cpu if THREADS is not set.
* Add Icecast protocolMarvin Scholz2014-08-04
| | | | | | Icecast is basically a convenience wrapper around the HTTP protocol. Signed-off-by: Martin Storsjö <martin@martin.st>
* imgutils: Do not declare avpriv_set_systematic_pal2 in the public headerDiego Biurrun2014-08-04
|
* avcodec: Deprecate dtg_active_format field in favor of avframe side-dataKieran Kunhya2014-08-03
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* huffyuv: Check and propagate function return valuesDiego Biurrun2014-08-03
| | | | | | | | | | Bug-Id: CVE-2013-0868 inspired by a patch from Michael Niedermayer <michaelni@gmx.at> Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Diego Biurrun <diego@biurrun.de> CC: libav-stable@libav.org
* huffyuv: Return proper error codesDiego Biurrun2014-08-03
|
* huffyuv: Use avpriv_report_missing_feature() where appropriateDiego Biurrun2014-08-03
|
* huffyuv: Eliminate some pointless castsDiego Biurrun2014-08-03
|
* huffyuv: K&R formatting cosmeticsDiego Biurrun2014-08-03
|
* mpeg4video: Initialize xvididct for all threadsAnton Khirnov2014-08-03
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* aarch64: use MACH-O const data asm directive in const macroJanne Grunau2014-08-04
|
* aarch64: add ',' between assembler macro arguments where missingJanne Grunau2014-08-04
| | | | | | | llvm's integrated assembler does not accept spaces as macro argument delimiter when targeting darwin. Using a explicit delimiter is a good idea in principle since it makes case like 'macro 4 -2' vs 'macro 4 - 2' clear.
* cpu-test: test av_cpu_countJanne Grunau2014-08-04
| | | | Add CPU count and number threads as informative values for fate.
* fate: add informative cpu testJanne Grunau2014-08-04
| | | | | | | | libavutil/cpu-test prints raw and effective cpu flags to STDERR. Detected cpu flags can be useful for debugging fate errors. No comparison of the result against a expected result since that would require fate config specific references.
* http: Refactor http_open_cnxLuca Barbato2014-08-03
| | | | | | | | | Split return value handling from the actual opening. Incidentally fixes the https -> http redirect issue reported by Compn on behalf of rcombs. CC: libav-stable@libav.org
* lavr: Do not change the sample format for mono audioJustin Ruggles2014-08-03
| | | | | | | This treats mono as planar internally within libavresample rather than changing the sample format. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avcodec: Deprecate unused defines and optionsDiego Biurrun2014-08-03
|
* avcodec: options: Add missing deprecation ifdefs around emu_edgeDiego Biurrun2014-08-03
|
* filtfmts: Replace deprecated uses of AVFilterPadDiego Biurrun2014-08-03
| | | | Also add missing mem.h header for av_freep().
* examples: filter_audio: Add missing mem.h header for av_freep()Diego Biurrun2014-08-03
|
* vf_fps: Replace use of deprecated AVFilterBufferRef by AVFrameDiego Biurrun2014-08-03
|
* lcl: Disentangle pointers to input data and decompression bufferDiego Biurrun2014-08-03
| | | | This is cleaner and avoids a cast plus a related const qualifier warning.
* tiff: Replace deprecated PIX_FMT names by modern onesDiego Biurrun2014-08-02
|
* dv: Update DV-profile-related functions to current public APIDiego Biurrun2014-08-02
|
* ppc: fft: Build AltiVec optimizations in the standard wayDiego Biurrun2014-08-02
|
* af_channelmap: Set the frame channel layoutLuca Barbato2014-08-02
| | | | | Otherwise the frame would show the first layout matching the channel count.
* af_join: Set the output frame formatLuca Barbato2014-08-02
|
* flv: Index the audio streamLuca Barbato2014-08-01
| | | | | And leverage the video index if the video is just disabled as wm4 did in an initial patch.