summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* flacdec: split off channel decorrelation as flacdspMans Rullgard2012-07-04
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avplay: Add an option for not limiting the input buffer sizeMartin Storsjö2012-07-04
| | | | | | | | | | | | | | | | | | | | | | For reading from normal files on disk, the queue limits for demuxed data work fine, but for reading data from realtime streams, they mean we're not reading from the input stream at all once the queue limit has been reached. For TCP streams, this means that writing to the socket from the peer side blocks (potentially leading to the peer dropping data), and for UDP streams it means that our kernel might drop data. For some protocols/servers, the server initially sends a large burst with data to fill client side buffers, but once filled, we should keep reading to avoid dropping data. For all realtime streams, it IMO makes sense to just buffer as much as we get (rather in buffers in avplay.c than in OS level buffers). With this option set, the input thread should always be blocking waiting for more input data, never sleeping waiting for the decoder to consume data. Signed-off-by: Martin Storsjö <martin@martin.st>
* FATE: add a test for WMA cover art.Anton Khirnov2012-07-04
|
* FATE: add a test for apetag cover artAnton Khirnov2012-07-04
|
* FATE: add a test for itunes cover art.Anton Khirnov2012-07-04
|
* flacdec: factor out code setting avctx->sample_fmtMans Rullgard2012-07-04
|
* flac: make FLAC_CHMODE_* constants consecutiveMans Rullgard2012-07-04
|
* flacdec: allocate sample buffers with av_mallocMans Rullgard2012-07-04
| | | | | | | | | The buffers are only allocated once, although it can happen from any of a few different places, so there is no need to use realloc. Using av_malloc() ensures they are aligned suitably for SIMD optimisations. Signed-off-by: Mans Rullgard <mans@mansr.com>
* flacdec: remove curr_bps from FLACContextMans Rullgard2012-07-04
| | | | This value does not need to be persistent across calls.
* fate: add flac encode/decode tests with various optionsMans Rullgard2012-07-04
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* flacenc: add option for forcing stereo decorrelation modeMans Rullgard2012-07-04
| | | | | | This is mainly useful for testing. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ismindex: Verify that all bitrate variants matchMartin Storsjö2012-07-03
| | | | | | | | | | In Smooth Streaming, the fragments are addressed by time, and the manifest only stores one list of time offests for all streams, so all streams need to have identical fragment offsets. Warn if this isn't the case, so that the user can fix the files instead of getting failures at runtime when the fragments can't be found. Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: Properly report errors reading the MFRA atomMartin Storsjö2012-07-03
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Consistently use C-style comments with multiple inclusion guardsDiego Biurrun2012-07-03
|
* anm: fix a few Doxygen commentsDiego Biurrun2012-07-03
|
* misc typo and wording fixesDiego Biurrun2012-07-03
|
* attributes: add av_noreturnReinhard Tartler2012-07-03
| | | | | | | Also use it in the declaration of the various exit_program implementations in avtools. inspired by a clang-scan report.
* attributes: drop pointless define guardsReinhard Tartler2012-07-03
| | | | the av_-prefixed attributes must not be defined outside of this file
* configure: do not disable av_always_inline with --enable-smallMans Rullgard2012-07-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, --enable-small turns av_always_inline into plain inline, which is more or less ignored by the compiler. While the intent of this is probably to reduce code size by avoiding some inlining, it has more far-reaching effects. We use av_always_inline in two situations: 1. The body of a function is smaller than the call overhead. Instances of these are abundant in libavutil, the bswap.h functions being good examples. 2. The function is a template relying on constant propagation through inlined calls for sane code generation. These are often found in motion compensation code. Both of these types of functions should be inlined even if targeting small code size. Although GCC has heuristics for detecting the first of these types, it is not always reliable, especially when the function uses inline assembler, which is often the reason for having those functions in the first place, so making it explicit is generally a good idea. The size increase from inlining template-type functions is usually much smaller than it seems due to different branches being mutually exclusive between the different invocations. The dead branches can, however, only be removed after inlining and constant propagation have been performed, which means the initial cost estimate for inlining these is much higher than is actually the case, resulting in GCC often making bad choices if left to its own devices. Furthermore, the GCC inliner limits how much it allows a function to grow due to automatic inlining of calls, and this appears to not take call overhead into account. When nested inlining is used, the limit may be hit before the innermost level is reached. In some cases, this has prevented inlining of type 1 functions as defined above, resulting in significant performance loss. Signed-off-by: Mans Rullgard <mans@mansr.com>
* flvdec: initial stream switch supportLuca Barbato2012-07-03
| | | | Codec change midstream gets mapped to a separate stream.
* avplay: fix write on freed memory for rawvideoLuca Barbato2012-07-03
| | | | | | | Do not assume avpacket and the decoded frames are independent. To be absolutely sure and not sprinkle av_free_packet around the code the call had been placed before getting the frame and on the error path.
* snow: remove a VLA used for edge emulationRonald S. Bultje2012-07-03
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: lavfi: fix gradfun/yadif build with mmx/sse disabledMans Rullgard2012-07-03
| | | | | | | These functions are defined conditionally so any uses need to have preprocessor guards. Signed-off-by: Mans Rullgard <mans@mansr.com>
* snow: remove the runs[] VLA.Ronald S. Bultje2012-07-03
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* snow: Check mallocs at initMartin Storsjö2012-07-03
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* flacdec: remove redundant setting of avctx->sample_fmtMans Rullgard2012-07-02
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* asfdec: read attached pictures.Anton Khirnov2012-07-02
|
* apetag: reindentAnton Khirnov2012-07-02
|
* apetag: export attached covers as video streams.Anton Khirnov2012-07-02
|
* apetag: fix the amount of data read from binary tags.Anton Khirnov2012-07-02
| | | | Substract the filename size from the data size.
* apetag: make sure avio_get_str() doesn't read more than it should.Anton Khirnov2012-07-02
|
* mov: read itunes cover art.Anton Khirnov2012-07-02
|
* snow: remove VLA in mc_block()Mans Rullgard2012-07-02
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* intfloat: Don't use designated initializers in the public headersRonald S. Bultje2012-07-02
| | | | | | | | | | | intfloat.h is a public header, and is now (since a1245d5ca) included by mathematics.h, which many external callers include. This fixes building third party applications that include mathematics.h in a language that doesn't support designated initalizers. Signed-off-by: Martin Storsjö <martin@martin.st>
* snow: remove a VLA.Ronald S. Bultje2012-07-02
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* doc: Remind devs to check return values, especially for malloc() et alDiego Biurrun2012-07-02
|
* MS ATC Screen (aka MSS3) decoderKostya Shishkov2012-07-02
|
* vf_yadif: move x86 init code to x86/yadif.cMans Rullgard2012-07-02
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* vf_gradfun: move x86 init code to x86/gradfun.cMans Rullgard2012-07-02
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* roqvideo: Remove a totally unused dspcontextMartin Storsjö2012-07-01
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* smacker: remove some unused codeMans Rullgard2012-07-01
| | | | | | | This removes some code apparently left over from vlc reader debugging. Signed-off-by: Mans Rullgard <mans@mansr.com>
* dsicin: remove dead assignmentMans Rullgard2012-07-01
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* aacdec: remove dead assignmentMans Rullgard2012-07-01
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* rl2: remove dead assignmentMans Rullgard2012-07-01
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* proresenc: make a variable local to the loop where it is usedMans Rullgard2012-07-01
| | | | | | | This moves the mbs_per_slice declaration inside the only loop where it is used. Fixes a dead assignment. Signed-off-by: Mans Rullgard <mans@mansr.com>
* alsdec: remove dead assignmentsMans Rullgard2012-07-01
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* opt/eval: Include mathematics.h for NAN/INFINITYMartin Storsjö2012-07-01
| | | | | | | These files use NAN/INFINITY but didn't include mathematics.h to get the fallback definitions if the system lacks the macros. Signed-off-by: Martin Storsjö <martin@martin.st>
* mathematics: Don't use division by zero in NAN/INFINITY macrosRonald S. Bultje2012-07-01
| | | | | | | | | | Some compilers, MSVC among them, don't recognize the divisions by zero as meaning infinity/nan. These macros should, according to the standard, expand to constant expressions, but this shouldn't matter for our usage. Signed-off-by: Martin Storsjö <martin@martin.st>
* wma: Lower the maximum number of channels to 2Martin Storsjö2012-07-01
| | | | | | | | | | | ff_wma_init is used only by wmadec and wmaenc, and neither of them can handle more than 2 channels. This fixes crashes with invalid files. Based on patch by Piotr Bandurski and Michael Niedermayer. Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: cpu: clean up check for cpuid instruction supportMans Rullgard2012-07-01
| | | | | | | This adds macros for accessing the EFLAGS register and uses these instead of coding the entire check in inline asm. Signed-off-by: Mans Rullgard <mans@mansr.com>