summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* fate: Skip the checkasm test if CONFIG_STATIC is disabledMartin Storsjö2017-01-09
| | | | | | | | | | When building DLLs with MSVC, CONFIG_STATIC is disabled (see d66c52c2b3694 for a more verbose explanation) since the built object files can't be linked statically (which checkasm does). This worked up until recently, only by luck. Signed-off-by: Martin Storsjö <martin@martin.st>
* hevcdec: add P010 support for D3D11VASteve Lhomme2017-01-09
| | | | | | | Given it's the same API than DVXA2 I don't know why the same output was not enabled for both. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dxva2: Factorize DXVA context validity test into a single macroSteve Lhomme2017-01-08
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* dxva2: Make ff_dxva2_get_surface() static and drop its name prefixSteve Lhomme2017-01-08
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* matroskadec: make sure not to leave EbmlBin in an inconsistent stateAnton Khirnov2017-01-04
| | | | | | | | | | If a read fails, the current code will free the data but leave the size non-zero. Make sure the size is zeroed in such a case. CC: libav-stable@libav.org Bug-Id: 1001 Found-By: Kamil Frankowicz Signed-off-by: Sean McGovern <gseanmcg@gmail.com>
* vaapi_h264: Fix POC on IDR framesJun Zhao2017-01-04
| | | | | | | | | | In H.264 section 8.2.1, we have that "The bitstream shall not contain data that result in Min(TopFieldOrderCnt, BottomFieldOrderCnt) not equal to 0 for a coded IDR frame". This fixes the encoder to always conform to this - previously the POC values formed an unbroken sequence, not resetting to zero on IDR frames. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* vaapi_h265: Fix build failure with old libva without 10-bit surfacesMark Thompson2017-01-04
| | | | | 10-bit surface support was added in libva 1.6.2, earlier versions support H.265 encoding in 8-bit only.
* aarch64: vp9mc: Fix a comment to refer to a register with the right nameMartin Storsjö2017-01-03
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* aarch64: vp9dsp: Fix vertical alignment in the init fileMartin Storsjö2017-01-03
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* arm: vp9mc: Fix vertical alignment of operandsMartin Storsjö2017-01-03
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cmdutils: update copyright year to 2017Sean McGovern2017-01-01
| | | | CC: libav-stable@libav.org
* configure: Fix typo in incdir variable written to config.shDiego Biurrun2016-12-30
| | | | This fixes includedir lines in pkg-config files broken after 92db508307.
* fate: Tweak printing of ignored testsMartin Storsjö2016-12-29
| | | | | | | | Use a tab instead of two spaces, skip the fate prefix for the test name. This makes IGNORE line fit in even better with the other make printouts. Signed-off-by: Martin Storsjö <martin@martin.st>
* fate: Unset the sig variable if ignoring a test failureMartin Storsjö2016-12-29
| | | | | | | Otherwise the .rep file would still contain a signal instead of a zero, even if the process returned success. Signed-off-by: Martin Storsjö <martin@martin.st>
* fate: Add --ignore-tests configure option for omitting specific FATE testsJanne Grunau2016-12-28
| | | | | | | | | This can be useful to filter out noise in known-broken scenarios like miscompilation by legacy compilers and similar. Originally based on a patch by Diego Biurrun. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* build: Add version numbers to "Requires" entries in pkg-config filesDiego Biurrun2016-12-28
| | | | The (required) version numbers disappeared after edb4348732.
* parser: Add missing #include for printing ISO C99 conversion specifiersDiego Biurrun2016-12-25
|
* matroskadec: fix SRT subtitle durationJohn Stebbins2016-12-24
| | | | The codec id for SRT was changed and conditionals were not updated.
* http: Check for negative chunk sizesMartin Storsjö2016-12-23
| | | | | | | | | | | A negative chunk size is illegal and would end up used as length for memcpy, where it would lead to memory accesses out of bounds. Found-by: Paul Cher <paulcher@icloud.com> CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* Use correct printf conversion specifiers for POSIX integer typesDiego Biurrun2016-12-23
|
* build: Generate pkg-config files from Make and not from configureDiego Biurrun2016-12-22
| | | | | | | | This moves work from the configure to the Make stage where it can be parallelized and ensures that pkgconfig files are updated when library versions change. Bug-Id: 449
* build: Store library version numbers in .version filesDiego Biurrun2016-12-22
| | | | | | This moves work from the configure to the Make stage where it can be parallelized and ensures that shared libraries are built with the right version number in the filename.
* build: Move build-system-related helper files to a separate subdirectoryDiego Biurrun2016-12-22
| | | | This unclutters the top-level directory and groups related files together.
* ratecontrol: Drop xvid-rc-related struct members unused after a6901b9c6Diego Biurrun2016-12-21
|
* nvenc: Update check for lookaheadRuta Gadkari2016-12-21
| | | | | | By default it is -1. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* aarch64: vp9itxfm: Use the offset parameter to movrelMartin Storsjö2016-12-19
| | | | | | This fixes build failures for iOS, broken since cad42fadcd2c. Signed-off-by: Martin Storsjö <martin@martin.st>
* tta: Convert to the new bitstream readerAlexandra Hájková2016-12-19
|
* mlp: Convert to the new bitstream readerAlexandra Hájková2016-12-19
|
* unary: Convert to the new bitstream readerAlexandra Hájková2016-12-19
|
* h264dec: make sure to only end a field if it has been startedAnton Khirnov2016-12-19
| | | | | | | | Calling ff_h264_field_end() when the per-field state is not properly initialized leads to all kinds of undefined behaviour. CC: libav-stable@libav.org Bug-Id: 977 978 992
* mpeg12dec: move setting first_field to mpeg_field_start()Anton Khirnov2016-12-19
| | | | | | | | | | | | | | | For field picture, the first_field is set based on its previous value. Before this commit, first_field is set when reading the picture coding extension. However, in corrupted files there may be multiple picture coding extension headers, so the final value of first_field that is actually used during decoding can be wrong. That can lead to various undefined behaviour, like predicting from a non-existing field. Fix this problem, by setting first_field in mpeg_field_start(), which should be called exactly once per field. CC: libav-stable@libav.org Bug-ID: 999
* mpeg12dec: avoid signed overflow in bitrate calculationAnton Khirnov2016-12-19
| | | | | | CC: libav-stable@libav.org Bug-Id: 981 Found-By: Agostino Sarubbo
* mpegvideo_parser: avoid signed overflow in bitrate calculationAnton Khirnov2016-12-19
| | | | | | CC: libav-stable@libav.org Bug-Id: 981 Found-By: Agostino Sarubbo
* mov: fix a possible invalid read in mov_read_mac_string()Anton Khirnov2016-12-19
| | | | | | | | | | When the input string is too large, so the second condition in if () fails, the code will erroneously execute the else branch, indexing the mac_to_unicode table with a negative index. CC: libav-stable@libav.org Bug-Id: 1000 Found-By: Kamil Frankowicz
* vaapi_decode: use the correct logging contextAnton Khirnov2016-12-19
|
* hevcdec: add a VAAPI hwaccelAnton Khirnov2016-12-19
| | | | | Partially based on a patch by Timo Rothenpieler <timo@rothenpieler.org>. Additional scaling list handling fix by Jun Zhao <mypopydev@gmail.com>.
* Changelog: add some missing entriesAnton Khirnov2016-12-19
|
* pthread_frame: do not run hwaccel decoding asynchronously unless it's safeAnton Khirnov2016-12-19
| | | | | | | | | | Certain hardware decoding APIs are not guaranteed to be thread-safe, so having the user access decoded hardware surfaces while the decoder is running in another thread can cause failures (this is mainly known to happen with DXVA2). For such hwaccels, only allow the decoding thread to run while the user is inside a lavc decode call (avcodec_send_packet/receive_frame).
* pthread_frame: ensure the threads don't run simultaneously with hwaccelAnton Khirnov2016-12-19
|
* hevcdec: do not set decoder-global SPS prematurelyAnton Khirnov2016-12-19
| | | | | | | | It should only be set after the decoder state has been fully initialized for using that SPS. Fixes possible invalid reads on get_format() failure. CC: libav-stable@libav.org
* v4l2: use codec descriptors for mapping a codec name to idAnton Khirnov2016-12-19
| | | | | This mapping has nothing to do with decoder implementations, so using decoder names is wrong.
* build: Add name parameter to check_lib() helper functionDiego Biurrun2016-12-16
| | | | | This allows enabling or disabling the library-related variables from within the function instead of doing it manually outside of it.
* configure: Disentangle vfw32 and user32 lib handlingDiego Biurrun2016-12-16
| | | | | Check for and link against user32 instead, which also fixes the missing dependency of dxva2 on user32 with MSVC.
* configure: fix linking with MSVC when using --disable-optimizationsSteve Lhomme2016-12-16
| | | | | | | | | Without any optimization flags, MSVC does no dead code elimination (DCE) at all, even for the most trivial cases. DCE is a prerequisite for building libav correctly, otherwise there are undefined references to functions for other architectures and disabled components. -O1 is the minimal optimization flag for MSVC that does include DCE.
* configure: put d3d11 check in alphabetical orderSteve Lhomme2016-12-16
|
* rtmppkt: Check for packet size mismatchesMichael Niedermayer2016-12-15
| | | | | | | | | | | | | | | | | | | When receiving fragmented packets, the first packet declares the size, and the later ones normally are small follow-on packets that don't repeat the size and the other header fields. But technically, the later fragments also can have a full header, declaring a different size than the previous packet. If the follow-on packet declares a larger size than the initial one, we could end up writing outside of the allocation. This fixes out of bounds writes. Found-by: Paul Cher <paulcher@icloud.com> Reviewed-by: Paul Cher <paulcher@icloud.com> CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* libavformat: Fix a faulty api deprecation guard in prepare_input_packetMartin Storsjö2016-12-15
| | | | | | | | | | | This seems to have been added by mistake in 11de006b, by not noticing the negation for the existing condition. This block does not contain any code that accesses the codec field in AVStream. This function is meant to serve as a complement to compute_pkt_fields2, which is guarded by FF_API_COMPUTE_PKT_FIELDS2 && FF_API_LAVF_AVCTX. Signed-off-by: Martin Storsjö <martin@martin.st>
* arm64: replace 'bic' with immediate with 'and' with inverted immediateJanne Grunau2016-12-14
| | | | | | The former is not an official pseudo instruction although gas and llvm's internal assembler support it. Fixes a build error with xcode 6.2 reported by Memphiz on github.
* ppc: Merge types_altivec.h into util_altivec.hDiego Biurrun2016-12-14
| | | | There is no point in keeping the two separate.
* ppc: Centralize compiler-specific altivec.h #include handling in one placeDiego Biurrun2016-12-14
| | | | Also move #includes into canonical order where appropriate.