Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-04movenc: use correct tag list for AVOutputFormat.codec_tagJohn Stebbins
ff_mp4_obj_type contains the wrong type of tags for AVOutputFormat.codec_tag. AVOutputFormat.codec_tag is used to validate AVCodecParameters.codec_tag so needs to be the same type of tag. Creates new tag lists for mp4 and ismv. New tag lists support same list of codecs found in ff_mp4_obj_type. psp uses the same tag list as mp4 since these both use mp4_get_codec_tag to look up tags. (cherry picked from commit 713efb2c0d013a42be4051adb7cd90a7c2cbbb4f) Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2017-07-04lavf: Remove codec_tag from dashenc and smoothstreamingencMartin Storsjö
Skip the codec_tag altogether here, to let the user (try to) set whichever codec/tag is preferred; the individual chained muxer will reject invalid codecs anyway. (cherry picked from commit 61f589e31e84ae02d7ac6837f30f19c437b1fc2e) Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2017-07-04libavfilter/scale2ref: Maintain main input's DARKevin Mark
The scale2ref filter will now maintain the DAR of the main input and not the DAR of the reference input. This previous behavior was deemed counterintuitive for most (all?) use-cases. Before: scale2ref=iw/4:ow/mdar in w:320 h:240 fmt:rgb24 sar:1/1 ref w:640 h:360 fmt:rgb24 sar:1/1 out w:160 h:120 fmt:rgb24 sar:4/3 flags:0x2 SAR: ((120 * 640) / (160 * 360)) * (1 / 1) = 4 / 3 DAR: (160 / 120) * (4 / 3) = 16 / 9 (main out now same DAR as ref) Now: scale2ref=iw/4:ow/mdar in w:320 h:240 fmt:rgb24 sar:1/1 ref w:640 h:360 fmt:rgb24 sar:1/1 out w:160 h:120 fmt:rgb24 sar:1/1 flags:0x2 SAR: ((120 * 320) / (160 * 240)) * (1 / 1) = 1 / 1 DAR: (160 / 120) * (1 / 1) = 4 / 3 (main out same DAR as main in) The scale2ref FATE test has also been updated. Signed-off-by: Kevin Mark <kmark937@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-07-04avfilter/vf_ssim: use unsigned so result can be properly storedPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-07-04avcodec/alsdec: fix some undefined shiftsPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-07-04avcodec/alsdec: remove unused headerPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-07-04lavc/mediacodec: rescale pts before decoding for both hw and sw buffersAman Gupta
Replicates the logic used in the wrap_hw_buffer path to wrap_sw_buffer as well. Fixes decoding issues observed on AMLogic devices with OMX.amlogic.mpeg2.decoder.awesome, where the decoder would spit out a constant stream of "mPtsRecoveryCount" errors and decoded frames were returned in the incorrect order. Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
2017-07-04lavc/mediacodec: add missing newline on warningAman Gupta
Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
2017-07-03lavc/aarch64: add sbrdsp neon implementationMatthieu Bouron
autocorrelate_c: 644.0 autocorrelate_neon: 420.0 hf_apply_noise_0_c: 1688.5 hf_apply_noise_0_neon: 1498.6 hf_apply_noise_1_c: 1691.2 hf_apply_noise_1_neon: 1500.6 hf_apply_noise_2_c: 1688.1 hf_apply_noise_2_neon: 1500.3 hf_apply_noise_3_c: 1696.6 hf_apply_noise_3_neon: 1502.2 hf_g_filt_c: 2117.8 hf_g_filt_neon: 1218.7 hf_gen_c: 4573.4 hf_gen_neon: 2461.0 neg_odd_64_c: 72.0 neg_odd_64_neon: 64.7 qmf_deint_bfly_c: 1107.6 qmf_deint_bfly_neon: 291.6 qmf_deint_neg_c: 210.4 qmf_deint_neg_neon: 107.4 qmf_post_shuffle_c: 163.0 qmf_post_shuffle_neon: 107.7 qmf_pre_shuffle_c: 120.5 qmf_pre_shuffle_neon: 110.7 sum64x5_c: 1361.6 sum64x5_neon: 435.4 sum_square_c: 1686.4 sum_square_neon: 787.2
2017-07-03checkasm: add sbrdsp testsMatthieu Bouron
2017-07-03avfomat/hlsenc: support fmp4 format in hlsSteven Liu
add the fmp4 format into hlsenc because the fmp4 format add into hls from version 7. the spec link is: https://tools.ietf.org/html/draft-pantos-http-live-streaming-20 and the describe on WWDC https://developer.apple.com/videos/play/wwdc2017/515/ Signed-off-by: Steven Liu <lq@onvideo.cn>
2017-07-03vdpau: do not use buggy HEVC support by defaultwm4
NVIDIA broke its own API when using VDPAU decoding. If you retrieve the decoded YUV data, or if you map the surfaces with GL interop, the result are interlacing artifacts. The only way to get non-broken data is by using the vdpau video mixer to convert it to RGB. There is no way to block the non-working operations in a reasonable way (a VdpVideoSurface has to support all operations). NVIDIA refuses to fix this issue (they "fixed" it by making it work with the video mixer, but the rest is still broken). There is no sign of that changing. Do not use HEVC by default with the generic hwaccle API. Detect whether it's the NVIDIA native implementation, and exit with an error. (The same thing work with the MESA implementation.) As an escape hatch and to allow applications to use the decoder if they really want to (perhaps because they make sure to explicitly use the video mixer), reuse AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH to disable this check. Once NVIDIA fixes the bug, working driver versions could be detected, and it could be allowed again.
2017-07-02avcodec/alsdec: call correct function for multi-channel codingPaul B Mahol
Fixes #5942. Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-07-01avcodec/imc: cast float to int prior to comparing with int variableKostya Shishkov
Update FATE test. Fixes #3886. Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-07-01avcodec/s302m: fix AVOption flagsfoo86
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2017-07-01checkasm: randomize the full input buffer in test_hybrid_analysisJames Almer
Missed in the last commit.
2017-07-01checkasm: fix size of input buffer in test_hybrid_analysisJames Almer
2017-06-30hevcdec: properly export some side data with frame threadingwm4
I noticed this with mastering display data. If frame threading is enabled, this side data is exported only for some frames. It turns out it's not properly propagated to the worker threads. I didn't touch A53 captions, because that involves memory allocation and freeing the data as side data is exported. Micro bump so that API users can detect the bug fix.
2017-06-30x86/sbrdsp: sign extend start and end gprs in ff_sbr_hf_gen_sseJames Almer
Tested-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
2017-06-30avcodec/hevc_ps: Fix integer overflow with beta/tc offsetsMichael Niedermayer
Fixes: runtime error: signed integer overflow: 2113929216 * 2 cannot be represented in type 'int' Fixes: 2422/clusterfuzz-testcase-minimized-5242114713583616 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-30libavformat/avformat.h: Move docs inside of #ifMax Weber
Otherwise AVTimebaseSource gets av_apply_bitstream_filters' documentation in doxygen. Signed-off-by: Max Weber <mii7303@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-30avfilter/vf_geq: >8 bps supportMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-30avcodec/interplayvideo: Check ff_get_buffer() for failureMichael Niedermayer
Fixes: runtime error: division by zero Fixes: 2408/clusterfuzz-testcase-minimized-5432734438653952 Fixes: 2415/clusterfuzz-testcase-minimized-4672827619803136 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-30fate: Add fate-copy-trac3074Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-29lavu/cpu: disable MMX warning on non x86 platformsClément Bœsch
We have AV_CPU_FLAG_ARMV8 == AV_CPU_FLAG_SSE3 which causes a trigger of this MMX warning on AArch64.
2017-06-29avcodec/interplayvideo: fix regression causing artifactsPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-06-29avcodec/gdv: add decompression for 2 and 5 methodPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-06-29Update mp4 object type for VP9KongQun Yang
Updated to the standard value 0xB1 defined in mp4ra.org. Signed-off-by: James Almer <jamrial@gmail.com>
2017-06-29avcodec/cfhd: Fix invalid left shift of negative valueMichael Niedermayer
Fixes: runtime error: left shift of negative value -1 Fixes: 2395/clusterfuzz-testcase-minimized-6540529313513472 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-29avcodec/vb: Check vertical GMC component before multiplyMichael Niedermayer
Fixes: runtime error: signed integer overflow: 8224 * 663584 cannot be represented in type 'int' Fixes: 2393/clusterfuzz-testcase-minimized-6128334993883136 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-28avcodec/interplayvideo: use correct context when checking for enough bytesPaul B Mahol
Fixes #6502. Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-06-28avcodec/x86: use new x86-64 functions for -idct simpleJames Darnley
They now match according to FATE, barring any further bugs with untested parts
2017-06-28avcodec/x86: add an 8-bit simple IDCT function based on the x86-64 high ↵James Darnley
depth functions Includes add/put functions Rounding contributed by Ronald S. Bultje
2017-06-28avcodec/x86: allow future 8-bit simple idct to have "DC only hack"James Darnley
Created by Ronald S. Bultje
2017-06-28avcodec/interplayvideo: return voidPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-06-28avcodec/interplayvideo: fix dead-lockPaul B Mahol
Fixes #6499. Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-06-28avcodec/interplayvideo: use int16_t instead of shortPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-06-28avcodec/interplayvideo: check that video_size is >0Paul B Mahol
Fixes #6498. Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-06-28hevc: Add support for alternative transfer characterics SEIVittorio Giovara
The use of this SEI is for backward compatibility in HLG HDR systems: older devices that cannot interpret the "arib-std-b67" transfer will get the compatible transfer (usually bt709 or bt2020) from the VUI, while newer devices that can interpret HDR will read the SEI and use its value instead. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2017-06-28avcodec/utvideodec: Factor multiply out of inner loopMichael Niedermayer
0.5% faster loop Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-28avcodec/utvideodec: bswap directly without memcpyMichael Niedermayer
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-28avcodec/utvideodec: enable unchecked bitreaderMichael Niedermayer
inner reader loop becomes 16% faster Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-28avcodec/utvideodec: hardcode vlc bitsMichael Niedermayer
2.5% faster vlc decoding Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-28avcodec/utvideodec: Move bitstream end check out of inner loopMichael Niedermayer
This is not needed when the buffer is large enough for the worst case of a line 2% faster vlc reading Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-28lavc/aacpsdsp: use ptrdiff_t for stride in hybrid_analysisClément Bœsch
2017-06-28lavc/aarch64: add a few SIMD functions for AAC PSClément Bœsch
☭ tests/checkasm/checkasm --bench --test=aacpsdsp checkasm: using random seed 3318985180 MMX implied by specified flags MMX implied by specified flags NEON: - aacpsdsp.add_squares [OK] - aacpsdsp.mul_pair_single [OK] - aacpsdsp.hybrid_analysis [OK] - aacpsdsp.stereo_interpolate [OK] checkasm: all 5 tests passed nop: 10.0 ps_add_squares_c: 63221.2 ps_add_squares_neon: 22311.7 ps_hybrid_analysis_c: 2466.6 ps_hybrid_analysis_neon: 1521.9 ps_mul_pair_single_c: 68592.0 ps_mul_pair_single_neon: 17426.6 ps_stereo_interpolate_c: 72344.3 ps_stereo_interpolate_neon: 72308.8 ps_stereo_interpolate_ipdopd_c: 117415.2 ps_stereo_interpolate_ipdopd_neon: 113386.3
2017-06-28lavc/aacpsdsp: fix a few spaces (cosmetics)Clément Bœsch
2017-06-28checkasm: add AAC PS testsClément Bœsch
This includes various fixes and improvements from James Almer. Signed-off-by: James Almer <jamrial@gmail.com>
2017-06-28lavc/arm: fix lack of precision in ff_ps_stereo_interpolate_neonClément Bœsch
The code originally pre-multiply by 2 the steps, causing the running sum of the h factors to drift away due to the lack of precision. It quickly causes an inaccuracy > 0.01. I tried diverse approaches such as multiply by 2.0 (instead of adding the value itself) without success. I'm unable to bench the impact of this change, feel free to compare. This commit fixes the incoming aacpsdsp tests. Following is an alternative simplified function (matching the incoming AArch64 code) that may be used: function ff_ps_stereo_interpolate_neon, export=1 vld1.32 {q0}, [r2] vld1.32 {q1}, [r3] ldr r12, [sp] vmov.f32 q8, q0 vmov.f32 q9, q1 vzip.32 q8, q0 vzip.32 q9, q1 1: vld1.32 {d4}, [r0,:64] vld1.32 {d6}, [r1,:64] vadd.f32 q8, q8, q9 vadd.f32 q0, q0, q1 vmov.f32 d5, d4 vmov.f32 d7, d6 vmul.f32 q2, q2, q8 vmla.f32 q2, q3, q0 vst1.32 {d4}, [r0,:64]! vst1.32 {d5}, [r1,:64]! subs r12, r12, #1 bgt 1b bx lr endfunc
2017-06-28x86/vf_blend: use ABS2 macroJames Almer