summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/options_table: disable CRC checking by defaultAnton Khirnov2013-10-271-1/+1
| | | | | | | | | | | | | | | | 3 runs each of fate-suite/hevc-conformance/ENTP_C_LG_3.bit with crc flag 1841819858 decicycles in frame decode, 32 runs, 0 skips 1833937180 decicycles in frame decode, 32 runs, 0 skips 1843283884 decicycles in frame decode, 32 runs, 0 skips without crc flag 1703897301 decicycles in frame decode, 32 runs, 0 skips 1695031879 decicycles in frame decode, 32 runs, 0 skips 1697524383 decicycles in frame decode, 32 runs, 0 skips Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/takdec: also do crc check when er compliant is setMichael Niedermayer2013-10-271-2/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/avcodec.h: Add documentation for the AV_EF_* defifinesMichael Niedermayer2013-10-271-8/+8
| | | | | | The documentation is copied from the AVOption texts Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* correct the AVOption documentation for AV_EF_CAREFULMichael Niedermayer2013-10-271-1/+1
| | | | | | | | The flag was and is intended to be a sane default and thus does not enable time consuming checks. This also matches how the flag is used in decoders and demuxers. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* vp9: skip itxfm_add if the whole block has no coefficients.Ronald S. Bultje2013-10-271-2/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/x86/videodsp: Small speedups in ff_emulated_edge_mc x86 SIMD.Ronald S. Bultje2013-10-271-17/+17
| | | | | | | | Don't use word-size multiplications if size == 2, and if we're using SIMD instructions (size >= 8), complete leftover 4byte sets using movd, not mov. Both of these changes lead to minor speedups. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/x86/videodsp: fix a bug in a %if statement where we used '%%' ↵Ronald S. Bultje2013-10-271-1/+1
| | | | | | instead of '&&'. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* vcodec/vc1dec: remove dead codeMichael Niedermayer2013-10-271-2/+1
| | | | | | Fixes CID732196 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/vc1_parser: check ff_vc1_parse_frame_header*() return valueMichael Niedermayer2013-10-271-2/+6
| | | | | | Fixed CID739860 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/tiff: factorize offset init codeMichael Niedermayer2013-10-271-3/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/tiff: remove TIFF_LONG special caseMichael Niedermayer2013-10-271-4/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/tiff: Fix use of uninitialized off variableMichael Niedermayer2013-10-271-3/+1
| | | | | | Fixes CID1108608 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/hevcpred_template: Fix integer overflowsMichael Niedermayer2013-10-271-2/+2
| | | | | | | | | | | | | | | | | signed integer overflow is undefined in C Fixes the following gcc warnings: In file included from libavcodec/hevcpred.c:27:0: libavcodec/hevcpred_template.c: In function ‘intra_pred_8’: libavcodec/hevcpred_template.c:302:9: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow] In file included from libavcodec/hevcpred.c:31:0: libavcodec/hevcpred_template.c: In function ‘intra_pred_9’: libavcodec/hevcpred_template.c:302:9: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow] In file included from libavcodec/hevcpred.c:35:0: libavcodec/hevcpred_template.c: In function ‘intra_pred_10’: libavcodec/hevcpred_template.c:302:9: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow] Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'afa93d198aaf2cc661c4df6d4095cd030265d30a'Michael Niedermayer2013-10-273-17/+242
|\ | | | | | | | | | | | | | | * commit 'afa93d198aaf2cc661c4df6d4095cd030265d30a': hevc_parser: Set pict_type, key_frame and output_picture_number. hevc: Search start code in decode_nal_units(). Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hevc_parser: Set pict_type, key_frame and output_picture_number.Yusuke Nakamura2013-10-273-9/+233
| | | | | | | | | | Conflicts: libavcodec/hevc.c
| * hevc: Search start code in decode_nal_units().Yusuke Nakamura2013-10-271-8/+9
| | | | | | | | | | User may cut off a weird position and send a packet from there. This avoids returning as invalid data immediately.
* | avcodec/flacdec: also do crc check when er compliant is setMichael Niedermayer2013-10-271-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/error_resilience check error_concealment, not err_recognition.Anton Khirnov2013-10-271-3/+3
| | | | | | | | | | | | | | err_recognition is supposed to trigger detecting and reporting errors, not trying to fix them. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-10-261-0/+1
|\ \ | | | | | | | | | | | | | | | | | | * qatar/master: fft-test: add a missing #include Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | fft-test: add a missing #includeAnton Khirnov2013-10-261-0/+1
| | | | | | | | | | | | stdio.h needed for printf since 7177df90a043bd59e172843fc7cb9e767080ea12
| * | aacdec: Fix calls to avpriv_report_missing_feature().Alex Converse2013-10-251-6/+6
| | | | | | | | | | | | It does not take log level as an argument.
| * | fft-test: Remove possibility of returning restricted exit codeDerek Buitenhuis2013-10-251-1/+4
| | | | | | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * | dct-test: Remove possibility of returning a restricted exit codeDerek Buitenhuis2013-10-251-1/+4
| | | | | | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | | avcodec/h264_parser: heuristically detect non marked keyframesMichael Niedermayer2013-10-261-0/+3
| | | | | | | | | | | | | | | | | | Fixes Ticket3083 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/x86/cabac: include get_cabac_bypass_sign_x86() under #if ↵Michael Niedermayer2013-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | !BROKEN_COMPILER this might fix Ticket2999 as well as some fate clients untested as the original patch submitter no longer has the environment to test this should be reverted if it does not fix the issues Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/jpeg2000dec: non zero image offsets are not supportedMichael Niedermayer2013-10-261-0/+5
| | | | | | | | | | | | | | | | | | | | | Fixes out of array accesses Fixes Ticket3080 Found-by: ami_stuff Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | h264: make flush_change() set mmco_resetMichael Niedermayer2013-10-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that frames do not get mixed on context reinits Fixes Ticket2836 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/h264: reduce noisiness of "mmco: unref short failure"Michael Niedermayer2013-10-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Do not consider it an error if we have no frames and should discard one. This condition can easily happen when decoding is started from an I frame Fixes Ticket2811 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/twinvq: return the actual number of consumed bytesMichael Niedermayer2013-10-251-1/+1
| | | | | | | | | | | | | | | | | | Fixes Ticket2980 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | metasound & twinvqdec: return the number of read bytes from read_bitstreamMichael Niedermayer2013-10-252-2/+2
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/wmalosslessdec: fix data flushing at the endMichael Niedermayer2013-10-251-0/+2
| | | | | | | | | | | | | | | | | | | | | Fixes ffplay -autoexit Fixes Ticket3000 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/h264: do not trust last_pic_droppable when marking pictures as doneMichael Niedermayer2013-10-241-3/+3
| | | | | | | | | | | | | | | | | | | | | This simplifies the code and fixes a deadlock Fixes Ticket2927 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/flicvideo: use avpriv_request_sample()Paul B Mahol2013-10-241-1/+1
| | | | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | | avcodec/x86/videodsp: Properly mark sse2 instructions in emulated_edge_mc ↵Ronald S. Bultje2013-10-242-22/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | x86 simd as such. Should fix crashes or corrupt output on pre-SSE2 CPUs when they were using SSE2-code (e.g. AMD Athlon XP 2400+ or Intel Pentium III) in hfix or hvar single-edge (left/right) extension functions. Tested-by: Ingo Brückl <ib@wupperonline.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | fft-test: Remove possibility of returning restricted exit codeDerek Buitenhuis2013-10-241-1/+4
| | | | | | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | | dct-test: Remove possibility of returning a restricted exit codeDerek Buitenhuis2013-10-241-1/+4
| | | | | | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | | lavc/libmp3lame: add comments about CBR/VBR modesTimothy Gu2013-10-241-2/+2
| | | | | | | | | | | | | | | Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* | | lavc/libmp3lame: fix alignment and capitalization in AVOptionsTimothy Gu2013-10-241-2/+2
| | | | | | | | | | | | | | | Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* | | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-10-241-12/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: golomb: reduce scope of a few variables Conflicts: libavcodec/golomb.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | golomb: reduce scope of a few variablesVittorio Giovara2013-10-241-12/+6
| | | | | | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | | avcodec/mpegaudio_tablegen: fix build with hardcoded tablesMichael Niedermayer2013-10-241-1/+1
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/metasound_data: Fix inconsistency in tablesMichael Niedermayer2013-10-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes out of array read This issue can be reproduced with: Lucky.asf teuflisch.asf from http://samples.ffmpeg.org/A-codecs/VoxWare/ as well as other samples fcb16m has 320 elements but the code before the patch can address a table of 384 elements in its place. I dont know if theres some elements missing, or its maybe the wrong table, or if the parameters affecting the table size are wrong, or if theres something else wrong. if someone reading this has easy access to some reference. (binary with the tables in it, spec, whatever, please contact us) This solution fixes the inconsistency by padding the table with zeros, this variant was suggested by Vitor Sessak. And ensures that nothing currently working breaks. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/hevc: remove CODEC_CAP_EXPERIMENTALMichael Niedermayer2013-10-232-2/+2
| | | | | | | | | | | | | | | | | | Approved-by: mraulet Approved-by: smarter Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-10-231-135/+177
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: golomb: K&R formatting cosmetics Conflicts: libavcodec/golomb.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | golomb: K&R formatting cosmeticsVittorio Giovara2013-10-231-136/+178
| | | | | | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | | Merge commit '1ce3ec24b35d9d549b12f17bd7fd391abaf3a6f7'Michael Niedermayer2013-10-231-319/+354
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | * commit '1ce3ec24b35d9d549b12f17bd7fd391abaf3a6f7': h263: K&R formatting cosmetics Conflicts: libavcodec/h263dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | h263: K&R formatting cosmeticsLuca Barbato2013-10-231-322/+361
| | | | | | | | | | | | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * | mpegvideo: Drop a faulty assertLuca Barbato2013-10-231-2/+6
| | | | | | | | | | | | | | | | | | | | | That check is easily reachable by faulty input. CC:libav-stable@libav.org Reported-by: Torsten Sadowski <tsadowski@gmx.net>
* | | avcodec/utils: use a default lock manager that uses a pthread mutexMichael Niedermayer2013-10-231-1/+56
| | | | | | | | | | | | | | | | | | | | | | | | That makes avformat & avcodec thread safe without the need to explicitly register a lock manager. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/vc1dec: use logical operation instead of bitwise for twomvMichael Niedermayer2013-10-231-2/+2
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
OpenPOWER on IntegriCloud