aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* vmnc: K&R formatting cosmeticsLuca Barbato2013-10-091-157/+195
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* x86inc: Remove .rodata kludgesHenrik Gramner2013-10-091-11/+5
| | | | | | | The Mach-O bug was fixed in yasm 0.8.0 and we don't support versions that old anymore. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* build: Require yasm 0.8.0 or higherDerek Buitenhuis2013-10-091-2/+2
| | | | | | | | | | | | | | This is in preparation for removing a .rodata kludge which was only required for older YASM versions. The movbe instruction was introduced in 0.8.0, which already had AVX, which was introduced in 0.7.0, and NASM introduced movbe in 2.0.3, which is the same version which introduced AVX support. Also, make the failure message more accurate. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* shorten: Extend fixed_coeffs to properly support pred_order 0Luca Barbato2013-10-091-2/+8
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* x86: h264_idct: Update comments to match 8/10-bit depth optimization splitDiego Biurrun2013-10-071-32/+42
|
* x86inc: remove misaligned cpu flagHenrik Gramner2013-10-071-5/+4
| | | | | | | | | | | | Prevents a crash if the misaligned exception mask bit is cleared for some reason. Misaligned SSE functions are only used on AMD Phenom CPUs and the benefit is miniscule. They also require modifying the MXCSR control register and by removing those functions we can get rid of that complexity altogether. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86inc: various minor backports from x264Jason Garrett-Glaser2013-10-071-4/+3
| | | | | | Small backports that sneaked into other asm commits in x264. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86inc: Check for __OUTPUT_FORMAT__ having a value of "x64"Derek Buitenhuis2013-10-071-0/+2
| | | | | | This is also a valid value for WIN64. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86inc: Utilize the shadow space on 64-bit WindowsHenrik Gramner2013-10-073-51/+55
| | | | | | | | | Store XMM6 and XMM7 in the shadow space in functions that clobbers them. This way we don't have to adjust the stack pointer as often, reducing the number of instructions as well as code size. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86inc: create xm# and ym#, analagous to m#Loren Merritt2013-10-071-1/+25
| | | | | | For when we want to mix simd sizes within one function. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86inc: fix some corner cases of SWAPLoren Merritt2013-10-071-27/+27
| | | | | | | | SWAP with >=3 named (rather than numbered) args PERMUTE followed by SWAP with 2 named args used to produce the wrong permutation Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86inc: Use SSE instead of SSE2 for copying dataHenrik Gramner2013-10-071-2/+2
| | | | | | | Reduces code size because movaps/movups is one byte shorter than movdqa/movdqu. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86inc: Set ELF hidden visibility for global constantsHenrik Gramner2013-10-071-1/+5
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* build: Strip spurious labelsLoren Merritt2013-10-072-0/+4
| | | | | | | | | | | | | | The implementation of 25cb0c1a involves lots of spurious labels. The effect of keeping those labels around is making debugging harder. Those labels are meaningless, and complicate the disassembly. Also, gdb can't tell the difference between them and function entry points. This new strip command is irrelevant to any usage of Libav that would have used the old fully stripped version, because the old one was for non-debug use. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86inc: activate REP_RET automaticallyLoren Merritt2013-10-071-5/+31
| | | | | | | | | | | | Now RET checks whether it immediately follows a branch, so the programmer dosen't have to keep track of that condition. REP_RET is still needed manually when it's a branch target, but that's much rarer. The implementation involves lots of spurious labels, but that's OK because we strip them. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86: fdct: Employ more specific ifdefsDiego Biurrun2013-10-061-2/+10
| | | | This avoids building mmxext and sse2 code when disabled by configure.
* bmv: Remove unused variableDiego Biurrun2013-10-061-1/+0
|
* oggparsevorbis: return meaningful errorsVittorio Giovara2013-10-051-11/+11
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* x86: dsputil: Separate ff_add_hfyu_median_prediction_cmov from dsputil_mmxDiego Biurrun2013-10-053-39/+67
| | | | | The function does not depend on MMX and compilation without MMX enabled fails if the function is compiled conditional on MMX availability.
* swscale: provide a default scaler if none is setVittorio Giovara2013-10-051-1/+11
| | | | | | | | | | Lanczos for general case, sinc for upscaling, Gaussian for downscaling. According to current literature these scalers should be the best quality-wise algorithms for each case. Inspired from a patch by wm4 <nfxjfg@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* x86: fdct: Initialize optimized fdct implementations in the standard wayDiego Biurrun2013-10-051-11/+11
|
* x86: xviddct: Employ more specific ifdefsDiego Biurrun2013-10-053-16/+28
| | | | This avoids building mmxext and sse2 code when disabled by configure.
* doxy: Document avlogLuca Barbato2013-10-052-10/+104
| | | | Provide some information for every function and add a group.
* ismindex: Change the duration field to int64_tMartin Storsjö2013-10-051-2/+2
| | | | | | This reduces the risk for overflow in pathlogical cases. Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: Calculate the file duration among the included tracksMartin Storsjö2013-10-051-2/+4
| | | | | | | | | If the input file contains other tracks (non video/audio) that aren't included in ismindex, the global file duration as returned by libavformat might not be equal to the maximum of the duration of the actual included tracks. Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: Use the individual stream duration instead of the global oneMartin Storsjö2013-10-051-2/+1
| | | | | | | | | | The stream duration is used for calculating the duration of the last fragment easily without manually parsing anything else than the mfra/tfra atoms. When the global file duration was used previously, the duration of the last fragment could end up wrong if the streams weren't equally long. Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: Don't allocate arrays with av_malloc that will be reallocedMartin Storsjö2013-10-051-1/+1
| | | | | CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: fdct: Only build fdct code if encoders have been enabledDiego Biurrun2013-10-041-1/+1
| | | | fdct is only initialized if encoders are enabled.
* rtmpproto: Validate the embedded flv packet size before copyingMartin Storsjö2013-10-041-0/+2
| | | | | | | | | | This wasn't an issue prior to 58404738, when the whole RTMP packet was copied at once and the length of the individual embedded flv packets only were validated by the flv demuxer. Prior to this patch, this could lead to reads and writes out of bound. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: Readjust the end of the flv buffer if handle_metadata exited earlyMartin Storsjö2013-10-041-0/+5
| | | | | | | | If the embedded flv packets were incomplete and we aborted the copying loop early, make sure the flv buffer is trimmed to only contain full packets. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: Move the flv header/trailer addition to append_flv_dataMartin Storsjö2013-10-041-4/+3
| | | | | | | | | | | | | | | | | update_offset is also called from handle_metadata, where the packet header sizes is already included in the size. Previously this lead to flv_data/flv_size including 15 uninitialized bytes at the end after each call to handle_metadata, making the flv demuxer lose sync with the stream. Also remove leftover copying in handle_metadata. This is a leftover from the refactoring in 5840473. (Previously this final mempcy was the one that copied all the packets at once, while this is done within the loop right now.) After making sure flv_size is set to the right size, this write was out of bounds. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: Clear the flv allocation size on reallocp failuresMartin Storsjö2013-10-041-2/+6
| | | | | | | This was overlooked in d872fb0f7 since I assumed all the realloc issues in the rtmp code was fixed already. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: Pass the 'live' parameter in the right unitMartin Storsjö2013-10-041-1/+1
| | | | | | | | | | | The current magic numbers passed are values in seconds, while the parameter itself should be passed over the wire in milliseconds. This makes (some/all?) live streams from Red5 work correctly, that previously returned StreamNotFound even with "-rtmp_live live". After this commit, the default 'any' also works on these streams. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: Print the error code string if there's no descriptionMartin Storsjö2013-10-041-2/+6
| | | | | | | | | | On (certain streams/setups at least on) Red5, the description string actually is present, but empty. Therefore, first try loading the description, but if not found or empty, load the code string instead. The code string is quite understandable in most cases anyway (like "NetStream.Play.StreamNotFound"). Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03267-338/+338
|
* oggparsevorbis: K&R formatting cosmeticsVittorio Giovara2013-10-031-78/+82
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avformat/output-example: Declare link dependency on libswscale in the MakefileDiego Biurrun2013-10-032-1/+3
|
* x86: cpu: Restore some explanatory comments removed in 7160bb7Diego Biurrun2013-10-031-0/+2
|
* atrac: Add missing av_coldMaxim Poliakovski2013-10-031-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* atrac3: Generalize gain compensation codeMaxim Poliakovski2013-10-033-75/+118
| | | | | | Move it to the ATRAC common code, to reuse in the upcoming ATRAC3+ decoder. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Use correct Doxygen syntaxDiego Biurrun2013-10-033-12/+12
|
* atrac: Move doxygen comments to the headerMaxim Poliakovski2013-10-032-21/+20
| | | | | | Also update copyright info and file description. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* atrac3: Replace a silly counter variable name with plain 'j'Diego Biurrun2013-10-031-5/+5
|
* lavc: mark deprecated AVCodec.max_lowres for removal on next bumpAnton Khirnov2013-10-021-0/+2
|
* vf_interlace: do not process an already interlaced frameVittorio Giovara2013-10-021-0/+10
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rtmp: alias rtmp_listen to listenLuca Barbato2013-10-011-0/+1
| | | | Make it uniform with the other protocols.
* mxf: Remove a typoLuca Barbato2013-10-011-1/+1
| | | | Introduced in 93370d1216
* asfdec: Check the return value of asf_read_stream_propertiesMartin Storsjö2013-09-301-1/+3
| | | | | | | | | | This makes sure errors in setting stream parameters are passed on to the caller. This avoids successfully opening files while some parameters aren't filled in properly. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* omadec: fix bitrate for ATRAC3+ streamsMaxim Poliakovski2013-09-291-1/+1
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Add support for multichannel ATRAC3+ streams.Maxim Poliakovski2013-09-293-3/+28
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>