summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* x86inc: Avoid creating unnecessary local labelsHenrik Gramner2016-01-23
| | | | | | | | | | | | The REP_RET workaround is only needed on old AMD cpus, and the labels clutter up the symbol table and confuse debugging/profiling tools, so use EQU to create SHN_ABS symbols instead of creating local labels. Furthermore, skip the workaround completely in functions that definitely won't run on such cpus. Note that EQU is just creating a local label when using nasm instead of yasm. This is probably a bug, but at least it doesn't break anything. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Simplify AUTO_REP_RETHenrik Gramner2016-01-23
| | | | | | | | cpuflags is never undefined any more, it's set to 0 instead. Also fix an incorrect comment. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Use more consistent indentationHenrik Gramner2016-01-23
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Preserve arguments when allocating stack spaceHenrik Gramner2016-01-23
| | | | | | | | When allocating stack space with a larger alignment than the known stack alignment a temporary register is used for storing the stack pointer. Ensure that this isn't one of the registers used for passing arguments. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Improve FMA instruction handlingHenrik Gramner2016-01-23
| | | | | | | | | | | | | | * Correctly handle FMA instructions with memory operands. * Print a warning if FMA instructions are used without the correct cpuflag. * Simplify the instantiation code. * Clarify documentation. Only the last operand in FMA3 instructions can be a memory operand. When converting FMA4 instructions to FMA3 instructions we can utilize the fact that multiply is a commutative operation and reorder operands if necessary to ensure that a memory operand is used only as the last operand. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Be more verbose in assertion failuresHenrik Gramner2016-01-23
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Make cpuflag() and notcpuflag() return 0 or 1Henrik Gramner2016-01-23
| | | | | | Makes it possible to use them in arithmetic expressions. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* pixdesc: fix and extend doxy for av_pix_fmt_get_chroma_sub_sample()Anton Khirnov2016-01-23
| | | | The parameters in the docs are currently swapped.
* configure: Correctly add openssl cflags and libsLuca Barbato2016-01-23
|
* libavcodec: Add missing AVClass pointersMartin Storsjö2016-01-22
| | | | | | This fixes crashes since 243df1351. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Move pre_me to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by mpegvideoenc. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move me_penalty_compensation to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by mpegvideoenc. It is a very codec-specific options, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move prediction_method to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | This options is only used by huffyuv, ffvhuv, jpegls, mjpeg, mpegvideoenc, png, utvideo. It is a very codec-specific options, so deprecate the global variant. Set proper limits to the maximum allowed values, and update utvideoenc tests to use the new option name. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move {min,max}_prediction_order to codec private optionsVittorio Giovara2016-01-21
| | | | | | | These options are only used by alac and flac. They are very codec-specific options, so deprecate the global variants. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move rtp_payload_size to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | This option is only used by mpegvideoenc and openh264. It is a very codec-specific option, so deprecate the global variant. The openh264 option is dropped altogether since it is just a fallback for -max_nal_size anyway. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move timecode_frame_start to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by mpeg2. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move context_model to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | This option is only used by ffv1 and ffvhuff. It is a very codec-specific option, so deprecate the global variant. Improve documentation a little. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move mpeg_quant to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by mpegvideoenc, and xvid. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move noise_reduction to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by mpegvideoenc, x264, xavs, and vpx. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move scenechange_threshold to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by mpegvideoenc, x264, and xavs. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move chromaoffset to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by x264 and xavs. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move frame_skip_* to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | | | | | These options are only used by mpegvideoenc and vpx. They are very codec-specific options, so deprecate the global variants. Add an allowed value to the private options for frame_skip_cmp which seems to have been forgotten, but perfectly working. The libvpx frame dropping feature uses one of such option (frame_skip_threshold) without the other three. For this reason rename the option to something more consistent with the other libvpx variables. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move brd_scale to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | This option is only used by mpegvideoenc, It is a very codec-specific option, so deprecate the global variant. Set proper limits to the maximum allowed values. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move b_frame_strategy and b_sensitivity to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | The b_frame_strategy option is only used by mpegvideoenc, qsv, x264, and xavs, while b_sensitivity is only used by mpegvideoenc. These are very codec-specific options, so deprecate the global variants. Set proper limits to the maximum allowed values. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* riff: add C210 FourCC (Canopus C210)Piotr Bandurski2016-01-21
|
* riff: add YUYV FourCC (Drastic YUYV)Piotr Bandurski2016-01-21
|
* imgconvert: Add the proper API guards to a deprecated functionVittorio Giovara2016-01-21
|
* imgconvert: Move AVPicture-related static function to the deprecated sectionVittorio Giovara2016-01-21
|
* imgconvert: Move the shrink functions only where neededVittorio Giovara2016-01-21
|
* imgconvert: Drop outdated comment blockVittorio Giovara2016-01-21
|
* configure: Force-enable select_any dependencies only on --enableLuca Barbato2016-01-21
| | | | | | Unbreak --enable-gnutls enabling tls_openssl_protocol Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: Add an option to toggle dref openingDerek Buitenhuis2016-01-21
| | | | | | | | | This feature is mostly only used by NLE software, and is both of dubious value being enabled by default, and a possible security risk. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* fate: add 10-bit v210 encoder testsJames Darnley2016-01-21
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* configure: Improve requesting specific featuresLuca Barbato2016-01-21
| | | | | | | | | | | | | | | | | | Before this patch trying to enable only https by issuing --disable-protocols --enable-protocol=https --enable-gnutls does not enable https, and --disable-all --enable-protocols does not enable libavformat and the protocols component. Now the default-enabled options are set after the explicitly disabled/enabled options are evaluated. If an explicitly enabled option cannot be enabled configure will fail printing an error message.
* yuv2rgb: Document the color space coefficientsVittorio Giovara2016-01-20
| | | | | | Based on the original documentation found in mpeg2dec (1995). Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* libkvazaar: Set frame rate as a rational numberArttu Ylä-Outinen2016-01-19
| | | | | | | | | | | | Updates libkvazaar to pass the exact frame rate to Kvazaar by setting the numerator and denominator separately instead of a single floating point number. The exact frame rate is needed for writing timing info to the bitstream. Requires Kvazaar version 0.8.1. Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: Make sure that the effective timebase would not overflowArttu Ylä-Outinen2016-01-19
| | | | | | | In the unlikely situation the user decides to set ticks_per_frame and timebase to a value large enough to overflow. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* configure: mips: Support both-endian compilersLuca Barbato2016-01-19
| | | | | Use mips{,64}eb to force big endian and mips{,64}el to force little endian.
* mathops: mips: Correctly enable loongson-specific assemblyLuca Barbato2016-01-19
| | | | | The code wrongly assumed that the instructions used are supported on mips64, while it is supported only on loongson cpus.
* configure: Use pkg-config to check for opensslLuca Barbato2016-01-19
|
* flvdec: Add sanity checking of the last packet sizeMartin Storsjö2016-01-19
| | | | | | | | For http, this avoids spurious warnings about failed requests (e.g. HTTP error 416 Requested Range Not Satisfiable), if the last packet is truncated and the size read is bogus. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: perform duration search just onceMichael Niedermayer2016-01-19
| | | | | | | | When loading a truncated flv file, it would previously try to do a seek to the end of every packet read. For some input protocols (such as http), such repeated seek attempts are cripple the reading performance. Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: build: Group all encoder objects togetherDiego Biurrun2016-01-18
|
* x86: ac3dsp: Drop forward declaration for nonexisting functionDiego Biurrun2016-01-18
|
* dca: fix misaligned access in ff_dca_convert_bitstreamAndreas Cadhalpun2016-01-15
| | | | | | | | | | | | The function is used on unaligned buffers (such as those provided by AVPacket), accessing them as uint16_t causes SIGBUS crashes on architectures like SPARC. This fixes ubsan runtime error: load of misaligned address for type 'const uint16_t', which requires 2 byte alignment Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* nutdec: only copy the header if it existsAndreas Cadhalpun2016-01-13
| | | | | | | | Fixes runtime error: null pointer passed as argument 2, which is declared to never be null Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* xwddec: prevent overflow of lsize * avctx->heightAndreas Cadhalpun2016-01-13
| | | | | | | | | This is used to check if the input buffer is larger enough, so if this overflows it can cause a false negative leading to a segmentation fault in bytestream2_get_bufferu. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* nuv: sanitize negative fps rateAndreas Cadhalpun2016-01-13
| | | | | Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* on2avc: limit number of bits to 30 in get_egolombAndreas Cadhalpun2016-01-13
| | | | | | | | | | More don't fit into the integer output. Also use get_bits_long, since get_bits only supports reading up to 25 bits, while get_bits_long supports the full integer range. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* nvenc: generate dts properlyAnton Khirnov2016-01-12
| | | | | | | | | | When there is a non-zero decoding delay due to reordering, the first dts should be lower than the first pts (since the first packet fed to the decoder does not produce any output). Use the same scheme used in mpegvideo_enc (which comes from x264 originally) -- wait for first two timestamps and extrapolate linearly to the past to produce the first dts value.