summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* vp9: ignore reference segmentation map if error_resilience flag is set.Ronald S. Bultje2014-08-13
| | | | | | Fixes ffvp9_fails_where_libvpx.succeeds.webm from ticket 3849. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavc/dnxhd: ff_dnxhd_cid_table is not exportedJames Almer2014-08-13
| | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* cvcodec/flacdsp_lpc_template: osmetic fixJames Darnley2014-08-13
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavc/flacenc: partially unroll loop in flac_enc_lpc_16James Darnley2014-08-13
| | | | | | | | | | | | It now does 12 samples per iteration, up from 4. From 1.8 to 3.2 times faster again. 3.6 to 5.7 times faster overall. Runtime is reduced by a further 2 to 18%. Overall runtime reduced by 4 to 50%. Same conditions as before apply. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/idctdsp: make add/put_pixels_clamped_c internal functionsJames Almer2014-08-13
| | | | | | | This reduces code duplication and differences with the fork. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavc/flacenc: add sse4 version of the 16-bit lpc encoderJames Darnley2014-08-13
| | | | | | | | | | From 1.8 to 2.4 times faster. Runtime is reduced by 2 to 39%. The speed-up generally increases with compression_level. This lpc encoder is not used with levels < 3 so it provides no speed-up in these cases. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec: add C xvid IDCT supportPascal Massimino2014-08-12
| | | | | | | | | Thanks to Pascal Massimino and Michael Militzer for permission to use under LGPL The xvid idct code is from xvid, and nearly unchanged to make future syncing easy the integration into ffmpeg is done by the commiter the commit message is written by the commiter Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'da7d839a0d3ec40423a665dc85e0cfaed3f92eb8'Michael Niedermayer2014-08-12
|\ | | | | | | | | | | | | | | | | | | | | * commit 'da7d839a0d3ec40423a665dc85e0cfaed3f92eb8': ffv1dec: check that global parameters do not change in version 0/1 Conflicts: libavcodec/ffv1dec.c See: b05cd1ea7e45a836f7f6071a716c38bb30326e0f Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ffv1dec: check that global parameters do not change in version 0/1Michael Niedermayer2014-08-12
| | | | | | | | | | | | | | | | | | Such changes are neither allowed nor supported Found-by: ami_stuff Bug-Id: CVE-2013-7020 CC: libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * hevc_mvs: avoid deriving tmvp in amvpChristophe Gisquet2014-08-12
| | | | | | | | | | | | | | | | Reduces the number of calls to tmvp derivation from 933685 to 586271 on a sequence. Reviewed-by: Mickaël Raulet <mraulet@insa-rennes.fr> Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * hevc: wait proper position for tmvpChristophe Gisquet2014-08-12
| | | | | | | | | | | | | | | | | | The position is either rounded or not checked, so delay the wait to check the proper value. Reviewed-by: Mickaël Raulet <mraulet@insa-rennes.fr> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit 'cf6090dc6252f2b276aa4133e3d73a89f4c6046c'Michael Niedermayer2014-08-12
|\| | | | | | | | | | | | | | | | | | | | | * commit 'cf6090dc6252f2b276aa4133e3d73a89f4c6046c': hevc: use intreadwrite Conflicts: libavcodec/hevc_mvs.c See: 7a4a5515b0ce97f1c4e18ed012cc3f86328dd220 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hevc: use intreadwriteChristophe Gisquet2014-08-12
| | | | | | | | | | | | When dealing with MVs, both components may be processed at a time. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit 'ed53cc217f6a6e4ddb35e3f01a79496091dc82dc'Michael Niedermayer2014-08-12
|\| | | | | | | | | | | | | | | | | | | | | * commit 'ed53cc217f6a6e4ddb35e3f01a79496091dc82dc': hevc: derive partial merge list Conflicts: libavcodec/hevc_mvs.c See: 4576eff05d94a5e0b853a7a595d31351cc539e7b Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hevc: derive partial merge listChristophe Gisquet2014-08-12
| | | | | | | | | | | | The merge list only needs to be derived up to the merge index. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * hevc: derive partially amvp listChristophe Gisquet2014-08-12
| | | | | | | | | | | | When the candidate has been found, no need to derive others. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit '09182b3224370e1d636631e77f201a8388766bd6'Michael Niedermayer2014-08-12
|\| | | | | | | | | | | | | | | | | | | | | * commit '09182b3224370e1d636631e77f201a8388766bd6': hevc: simplify rounding Conflicts: libavcodec/hevc_mvs.c See: 2e471e4703ed5aaab6d6b6bf5a3c6895b79f02b4 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hevc: simplify roundingChristophe Gisquet2014-08-12
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit 'd1b1c3bb5ef1bee409c06c3bcacfb8674e1cb574'Michael Niedermayer2014-08-12
|\| | | | | | | | | | | | | | | | | | | | | * commit 'd1b1c3bb5ef1bee409c06c3bcacfb8674e1cb574': hevc: reorder loops Conflicts: libavcodec/hevc.c See: eca1957c4cbee66a0b1f3dcabaffe68d61885f16 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hevc: reorder loopsChristophe Gisquet2014-08-12
| | | | | | | | | | | | iterate over memory in a more continuous order Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | vp9/x86: fix bug in intra_pred_hd_32x32.Ronald S. Bultje2014-08-12
| | | | | | | | | | | | | | | | Fixes mismatch in first keyframe in sample ffvp9_fails_where_libvpx.succeeds.webm from ticket 3849. There's still a second mismatch a few frames into the sample. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86/dca: remove unused headerJames Almer2014-08-12
| | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86/ttadsp: remove an unnecessary movaJames Almer2014-08-12
| | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | proresenc_kostya: report buffer overflowChristophe Gisquet2014-08-12
| | | | | | | | | | | | | | If the allocated size, despite best efforts, is too small, exit with the appropriate error. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | proresenc_kostya: remove unneeded parametersChristophe Gisquet2014-08-12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/snow: fix null pointer dereference in cleanup after allocation failureMichael Niedermayer2014-08-11
| | | | | | | | | | | | Fixes: snowf.avi Found-by: Piotr Bandurski <ami_stuff@o2.pl> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuvdec: fix overread checksMichael Niedermayer2014-08-11
| | | | | | | | | | | | Fixes: ffvhuff_f.avi Found-by: Piotr Bandurski <ami_stuff@o2.pl> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/get_bits: add BITS_LEFT() for finding the bits left with an opened ↵Michael Niedermayer2014-08-11
| | | | | | | | | | | | reader Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/raw: remove obsolete ff_raw_pix_fmt_tags cruftJames Almer2014-08-11
| | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: stop exporting internal functions and tablesJames Almer2014-08-11
| | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/idctdsp: move add/put_pixels_clamped_c to headerMichael Niedermayer2014-08-11
| | | | | | | | | | | | This allows sharing them with the xvid IDCT Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | hevc: do generic validation of bitstreamChristophe Gisquet2014-08-11
| | | | | | | | | | | | | | | | After finishing parsing VPS/SPS/PPS/slice header, check remaining bits, and if an overconsumption occurred, report invalid data. Liked-by: BBB Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | hevc: add missing comma in log message.Ronald S. Bultje2014-08-11
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/vc1dec: do not crash when flushing without an allocated frameMichael Niedermayer2014-08-11
| | | | | | | | | | | | Fixes Ticket3837 Found-by: Piotr Bandurski <ami_stuff@o2.pl> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'cc1d8c54c19dd14fb851e3e7a7793d6b3bd75e94'Michael Niedermayer2014-08-10
|\| | | | | | | | | | | | | * commit 'cc1d8c54c19dd14fb851e3e7a7793d6b3bd75e94': avcodec: Postpone FF_IDCT_XVIDMMX removal until the next version bump Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avcodec: Postpone FF_IDCT_XVIDMMX removal until the next version bumpDiego Biurrun2014-08-10
| |
* | avcodec/iff: check pixfmt for rgb8 / rgbnMichael Niedermayer2014-08-10
| | | | | | | | | | | | | | Fixes out of array access Found-by: Piotr Bandurski <ami_stuff@o2.pl> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/iff: Factorize av_pix_fmt_desc_get() outMichael Niedermayer2014-08-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'd63443b9684fa7b3e086634f7b44b203b6d9221e'Michael Niedermayer2014-08-10
|\| | | | | | | | | | | | | | | | | | | | | * commit 'd63443b9684fa7b3e086634f7b44b203b6d9221e': lavc: drop the av_fast_{re,m}alloc compatibility wrappers Conflicts: libavcodec/utils.c See: a973e01501bc3ca5c61d778f97f350837d4ed481 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: drop the av_fast_{re,m}alloc compatibility wrappersAnton Khirnov2014-08-10
| | | | | | | | They were only needed until the bump.
* | Merge commit '2597a842a0a2c7e8aa76f32733d27bf64817ae86'Michael Niedermayer2014-08-10
|\| | | | | | | | | | | | | | | | | | | * commit '2597a842a0a2c7e8aa76f32733d27bf64817ae86': tiff: Improve grayscale support Conflicts: libavcodec/tiff.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * tiff: Improve grayscale supportDiego Elio Pettenò2014-08-10
| | | | | | | | | | | | | | | | | | | | Only use PAL8 if palette is present, else use GRAY8 for pixfmt. Instead of simulating a grayscale palette, use real grayscale pixels, if no palette is actually defined. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | hevc_ps: verify P/T/L informationChristophe Gisquet2014-08-10
| | | | | | | | | | | | | | This makes the SPS parsing a little, but barely, safer. Reviewed-by: Mickaël Raulet <mraulet@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/options_table: leave xvidmmx AVOption in placeMichael Niedermayer2014-08-10
| | | | | | | | | | | | Also mark it as deprecated through its help text Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | hevc_mvs: set candidate availabilitiesChristophe Gisquet2014-08-10
| | | | | | | | | | | | | | | | | | | | | | They might be left uninitialized otherwise since 3ad04608. Fixes ticket #3840. Found-by: Carl Eugen Hoyos <ce@hoyos.ws> Reported-by: Piotr Bandurski <ami_stuff@o2.pl> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Revert "lavc/utils: Do not require dimensions for PNG."Derek Buitenhuis2014-08-10
| | | | | | | | | | | | | | | | | | | | mplayer-specifc hacks should not be in our codebase. mplayer should fix its own code. It is not our responsibility to work around their broken code. This reverts commit e8e575633faf19711910cf9caf59f7db300a9ccd. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | hevc: fix incorrect sao buffer sizeChristophe Gisquet2014-08-10
| | | | | | | | | | | | | | | | | | | | It previously used the output, cropped size, causing overreads/writes. Fixes ticket #3839. This issue was introduced by d249e682, which is not part of any release Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '9325d88eba8038b3e2a4485e473a018410379e2d'Michael Niedermayer2014-08-10
|\| | | | | | | | | | | | | | | | | | | | | * commit '9325d88eba8038b3e2a4485e473a018410379e2d': lavc: remove obsolete and disabled avpriv functions Conflicts: libavcodec/dv_profile.c libavcodec/dv_profile.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: remove obsolete and disabled avpriv functionsAnton Khirnov2014-08-09
| |
* | avcodec: disable FF_API_FAST_MALLOCMichael Niedermayer2014-08-10
| | | | | | | | | | | | | | | | It causes build failures in some cases and the functions are provided by libavutil so the wraper should not be needed anymore Found-by: jamrial Signed-off-by: Michael Niedermayer <michaelni@gmx.at>