summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* hevc: skip invalid/ignored NALUs when splitting the packetAnton Khirnov2015-07-12
| | | | | There is no need to wait until actually decoding the NALU. This will allow to get rid of the second hls_nal_unit() call later.
* hevc: remove HEVCContext usage from hevc_psAnton Khirnov2015-07-12
| | | | | | Factor out the parameter sets into a separate struct and use it instead. This will allow us to reuse this code in the parser.
* mpegvideo_parser: export pixel format and dimensionsAnton Khirnov2015-07-12
|
* hevc: check slice address lengthAndreas Cadhalpun2015-07-12
| | | | | | | It is used as get_bits argument and reading 0 bits doesn't make sense. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* doc: add a section about building with libmfxAnton Khirnov2015-07-12
|
* bytestream2: set the reader to the end when reading more than availableAnton Khirnov2015-07-12
| | | | | | | | This prevents possible infinite loops with the calling code along the lines of while (bytestream2_get_bytes_left()) { ... }, where the reader does not advance. CC: libav-stable@libav.org
* Checkasm: assembly testing and benchmarking toolHenrik Gramner2015-07-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | It provides the following features: * verify correctness by comparing output to the C version. * detect failure to save and restore clobbered callee-saved registers. * detect 32-bit parameters being used as if they were 64-bit in x86-64 (the upper halves are not guaranteed to be zero - but in practice they very often are, which makes those bugs hard to spot otherwise). * easy benchmarking. Compile by running 'make checkasm'. Execute by running 'tests/checkasm/checkasm'. Optional arguments are '--bench' to run benchmarks for all functions, '--bench=<pattern>' to run benchmarks for all functions that starts with <pattern>, and '<integer>' to seed the PRNG for reproducible results. Contains unit tests for most h264pred functions to get started, more tests can be added afterwards using those as a reference. Loosely based on code from x264. Currently only supports x86 and x86-64, but additional architectures shouldn't be too much of an obstacle to add. Note that functions with floating point parameters or floating point return values are not supported. Some compiler-specific features or preprocessor hacks would likely be required to add support for that. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* asfdec: always reset packet state after seekingHendrik Leppkes2015-07-12
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* riff: Validate bitrateAndreas Cadhalpun2015-07-11
|
* mp3: Make the seek more robustLuca Barbato2015-07-11
| | | | | | Try to parse up to 4 packets to find the closest packet. Reported-By: jan.schlueter@ofai.at
* riff: Use the correct logging contextLuca Barbato2015-07-11
|
* g726: Do not crash on user mistakeLuca Barbato2015-07-11
| | | | | | Properly report the sample rate as invalid CC: libav-stable@libav.org
* fbdev: Support the RGB565 colour space.Dan Flett2015-07-11
| | | | | | Tested on a Raspberry Pi. Signed-off-by: Martin Storsjö <martin@martin.st>
* imc: Use correct position for flcoeffs2 calculationAndreas Cadhalpun2015-07-10
| | | | | | | | | | | | flcoeffs2[pos] should be the log2 of flcoeffs1[pos]. flcoeffs1[0] can be 0 here, thus flcoeffs2[pos] gets set to -inf, causing problems further down. This seems to have been copied from imc_decode_level_coefficients in commit 4eb4bb3 without updating the position. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* asfdec: Fix reading from the pipeAlexandra Hájková2015-07-10
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libvpx: Add the library headerVittorio Giovara2015-07-09
| | | | Unbreak make checkheaders
* lavc: Add nvenc.h to the skipheaderLuca Barbato2015-07-09
| | | | Unbreak make checkheaders
* configure: Make the new qsv encoder depend on libmfxLuca Barbato2015-07-09
| | | | Found-by: kropping
* x86: Serialize rdtsc in read_time()Henrik Gramner2015-07-09
| | | | | | | | | | | | | | | | | Improves the accuracy of measurements, especially in short sections. To quote the Intel 64 and IA-32 Architectures Software Developer's Manual: "The RDTSC instruction is not a serializing instruction. It does not necessarily wait until all previous instructions have been executed before reading the counter. Similarly, subsequent instructions may begin execution before the read operation is performed. If software requires RDTSC to be executed only after all previous instructions have completed locally, it can either use RDTSCP (if the processor supports that instruction) or execute the sequence LFENCE;RDTSC." SSE2 is a requirement for lfence so only use it on SSE2-capable systems. Prefer lfence;rdtsc over rdtscp since rdtscp is supported on fewer systems. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avconv: vda: Unlock the pixel buffer once it is accessedSebastien Zwickert2015-07-09
| | | | | | | | | Avoid possible issues with memmapped hardware buffers in case VDA is not doing a conversion on behalf of the user and make the code more proper as working example. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* doc: Use the succinct syntax for the channelmap exampleLuca Barbato2015-07-09
| | | | Mixing succinct and long syntax does not work.
* lavc: add Intel libmfx-based HEVC encoderAnton Khirnov2015-07-08
|
* lavc: add Intel libmfx-based MPEG2 encoderAnton Khirnov2015-07-08
|
* hevc: split bitstream unescaping to a separate fileAnton Khirnov2015-07-08
| | | | It will be useful in the QSV HEVC encoder.
* hevc_ps: split the code for parsing the SPS and exporting it into the contextAnton Khirnov2015-07-08
| | | | | This will be useful in the later commits, where we want to parse an SPS without having a whole decoding context.
* lavf/hevc: pad the RBSP buffer as required by the bistream readerAnton Khirnov2015-07-08
|
* lavc: Deprecate avctx.rc_strategyVittorio Giovara2015-07-08
| | | | | | | Only used by libxvid in ratecontrol module, so move it to a codec private option. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* h261: Signal freeze picture release for intra framesStian Selnes2015-07-07
| | | | | | | | | | | | | | Freeze picture release should be set to 1 when we're responding to a fast update request. For simplicity we set it for all intra frames, including those that starts a GOP. Fixes issue where Tandberg MXP1700 does not recover from packet loss state since it's waiting for the freeze picture relase indication. Bug-Id: 873 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* h261: Set 'still image mode off' in picture headerStian Selnes2015-07-07
| | | | | | | | | | | | | | | | Ref H.261 recommendation section 4.2.1.3, setting the still image flag to 1 disables still image mode. Some decoders require this in order to decode the bitstream as normal video. Fixes H.261 calls to Cisco E20. Also, reserved (aka spare) bits should be set to 1 unless specified otherwise. Bug-Id: 872 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* xcbgrab: Explicitly include xcb/shape.hLuca Barbato2015-07-06
| | | | Found-By: Cheristheus
* mpjpeg: Write the Content-lengthFrank Heckenbach2015-07-04
|
* mpjpeg: Simplify using avio_printfLuca Barbato2015-07-04
|
* lavc: Move deprecation warning disabling to files including the tableVittorio Giovara2015-07-03
| | | | | | Unbreak build from 7a5902c556d84a367dd64a003a4e7244fc3a73d1. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: Disable deprectation warnings coming from options tableVittorio Giovara2015-07-03
|
* lavu: Add version information for av_version_info()Vittorio Giovara2015-07-03
| | | | Move the APIchange entry at the top.
* vda: Check the correct pointer for buffer allocationLuca Barbato2015-07-03
| | | | | CC: libav-stable@libav.org Found-By: kropping
* webp: Make sure enough bytes are availableAndreas Cadhalpun2015-07-03
| | | | | | | | Every chunk needs at least 8 bytes for chunk_type and chunk_size. Prevent a possible infinite loop. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* asfdec: prevent the infinite loop in detect unknown_subobjectAlexandra Hájková2015-07-03
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* asfdec: prevent possible memory leak in the asf_read_metadata_objAlexandra Hájková2015-07-03
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: Deprecate avctx.{inter,intra}_quant_biasVittorio Giovara2015-07-02
| | | | | | | They are used by dnxhd and mpegvideo_enc exclusively, move them to codec private options instead. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavu: add an API function to return the Libav version stringwm42015-07-02
| | | | | | | | This returns something like "v12_dev0-1332-g333a27c". This is much more useful than the individual library versions, of which there are too many, and which are very hard to map back to releases or git commits. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* fate-g2m3: disable the audio streamJanne Grunau2015-07-01
| | | | | The audio decoder is not in fate-g2m3 dependencies and the wma2 decoder is probably not bit-exact since it it float based.
* elsdec: Replace EOVERFLOW with INVALIDDATAMichael Niedermayer2015-07-01
| | | | | | EOVERFLOW is not available on all platforms. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* g2meet: force simple idct for identical results over all fate configsJanne Grunau2015-07-01
|
* g2meet: use av_ceil_log2 instead of a custom functionJanne Grunau2015-07-01
|
* g2meet: use an unsigned type for the djb hashJanne Grunau2015-07-01
|
* avcodec: add missing CODEC_CAP_DR1 to codecs using get_buffer()Janne Grunau2015-07-01
|
* mov: Log format rather than fourcc in stsd in trace modeVittorio Giovara2015-07-01
| | | | This will fix remaining format warnings.
* mov: Adjust variable types to fix format warningsVittorio Giovara2015-07-01
|
* dump: Use the correct abs() versionVittorio Giovara2015-07-01
| | | | | | Fix warning from clang "absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]".