Rostislav Pehlivanov
03d8fbc09c
opustab: comment ff_celt_tf_select
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2017-07-10 23:49:44 +01:00
Rostislav Pehlivanov
ba67c2349c
opus_celt: move postfilter taps table to the shared opustab.c file
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2017-07-10 23:49:44 +01:00
wm4
c64da19bbc
dxva: DXVA2_ModeHEVC_VLD_Main10 does not support Main
...
This mode apparently does not support decoding of HEVC Main (8 bit).
With D3D11 and Intel drivers on Windows 10 I get green corruption, while
using DXVA2_ModeHEVC_VLD_Main works.
2017-07-10 16:03:15 +02:00
Paul B Mahol
0281d5ece6
avcodec/magicyuv: add 12 bit formats
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-07-10 12:03:08 +02:00
Paul B Mahol
fa3fd7f5a0
avcodec/magicyuv: make RLE table reading match reference
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-07-10 12:03:08 +02:00
Marton Balint
b406f387c8
avcodec/noise_bsf: add support for dropping packets
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2017-07-09 19:41:58 +02:00
Michael Niedermayer
fe9242204d
avcodec/ylc: Fix vlc of 31 bits
...
Fixes: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
Fixes: 2515/clusterfuzz-testcase-minimized-6197200012967936
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-08 23:45:47 +02:00
Michael Niedermayer
2061de8a3f
avcodec/sbrdsp_fixed: Fix integer overflow in sbr_hf_apply_noise()
...
Fixes: runtime error: signed integer overflow: -2049425300 + -117591631 cannot be represented in type 'int'
Fixes: part of 2096/clusterfuzz-testcase-minimized-4901566068817920
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-08 23:45:41 +02:00
Derek Buitenhuis
51db262312
bitstream_filter: Add missing error check
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2017-07-07 15:32:37 -04:00
Derek Buitenhuis
aa2bc61a3e
cngenc: Remove dead store
...
ff_lpc_calc_ref_coeffs returns the order it is given and cannot return
in error.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2017-07-07 15:29:57 -04:00
Derek Buitenhuis
179bf86fa2
opusdec: Remove dead code
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2017-07-07 15:26:35 -04:00
Derek Buitenhuis
f7daed8545
scpr: Added missing error check
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2017-07-07 15:25:46 -04:00
Derek Buitenhuis
b603ef0870
bitpacked: Remove dead store
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2017-07-07 15:23:58 -04:00
DongHoon Kang
db8f615d68
libavcodec/htmlsubtitles.c: make tags case-insensitive
...
Signed-off-by: DongHoon Kang <nanuda.kang@gmail.com >
Signed-off-by: Clément Bœsch <u@pkh.me >
2017-07-07 12:01:00 +02:00
Muhammad Faiz
1af615683e
avcodec/fft_template: use ff_thread_once on costable initialization
...
Make it thread-safe and avoid redundant initialization.
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com >
Reviewed-by: wm4 <nfxjfg@googlemail.com >
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com >
2017-07-07 09:41:52 +07:00
Rafaël Carré
3b9cf943c9
h264dec: remove unneeded prototype
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-07 03:48:56 +02:00
wm4
f605b56ad9
htmlsubtitles: support <br> tag
...
Some .srt files use this tag.
(An alternative implementation would be correctly ignoring unknown tags,
and treating them as whitespace. libass can do automatic line wrapping.)
2017-07-06 10:04:55 +02:00
Michael Niedermayer
f1baafac71
avcodec/interplayvideo: Clean up frames on parameter change
...
Fixes: out of array access
Fixes: 2467/clusterfuzz-testcase-minimized-4755798049685504
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-06 03:59:09 +02:00
James Almer
9d5e81d3b1
Revert "x86/sbrdsp: remove unnecessary sign extend instruction in apply_noise_main"
...
This reverts commit 24bb7db403 .
noise has to after all be sign extended, not zero extended, on tests
other than checkasm.
Fixes most aac tests broken by the now reverted commit.
2017-07-05 10:29:15 -03:00
Michael Niedermayer
c8cfbc6629
avcodec/hevcdec: do not let updated extradata corrupt state
...
Fixes: out of array access
Fixes: 2451/clusterfuzz-testcase-minimized-4781613957251072
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-05 04:37:57 +02:00
James Almer
24bb7db403
x86/sbrdsp: remove unnecessary sign extend instruction in apply_noise_main
...
noise needs to be zero extended and it can be done implicitly as a side effect
in a subsequent instruction.
Signed-off-by: James Almer <jamrial@gmail.com >
2017-07-04 23:36:17 -03:00
James Almer
bcbe9e4447
x86/sbrdsp: zero extend m_max in apply_noise_main
...
Tested-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2017-07-04 23:02:24 -03:00
James Almer
440285474b
x86/utvideodsp: make restore_rgb_planes functions work on x86_32
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2017-07-04 22:49:45 -03:00
Michael Niedermayer
c07af72098
avcodec/wavpack: Fix invalid shift
...
Fixes: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
Fixes: 2377/clusterfuzz-testcase-minimized-6108505935183872
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-05 03:19:27 +02:00
Michael Niedermayer
7592d97f10
avcodec/h264_slice: Fix signed integer overflow
...
Fixes: runtime error: signed integer overflow: 26 + 2147483644 cannot be represented in type 'int'
Fixes: 2456/clusterfuzz-testcase-minimized-4822695051001856
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-05 03:19:27 +02:00
Paul B Mahol
cbbd330abc
avcodec/alsdec: fix some undefined shifts
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-07-04 09:24:54 +02:00
Paul B Mahol
c3f10ea4bb
avcodec/alsdec: remove unused header
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-07-04 09:20:48 +02:00
Aman Gupta
aad79e4323
lavc/mediacodec: rescale pts before decoding for both hw and sw buffers
...
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-03 23:39:06 +02:00
Aman Gupta
6d4a686d45
lavc/mediacodec: add missing newline on warning
...
Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com >
2017-07-03 23:38:06 +02:00
Matthieu Bouron
0a24d7ca83
lavc/aarch64: add sbrdsp neon implementation
...
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-03 14:29:22 +02:00
wm4
64ecb78b71
vdpau: do not use buggy HEVC support by default
...
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-03 12:56:32 +02:00
Paul B Mahol
c8853568b1
avcodec/alsdec: call correct function for multi-channel coding
...
Fixes #5942 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-07-02 16:45:15 +02:00
Kostya Shishkov
06a66e7d94
avcodec/imc: cast float to int prior to comparing with int variable
...
Update FATE test.
Fixes #3886 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-07-01 21:42:12 +02:00
foo86
f8b1a70412
avcodec/s302m: fix AVOption flags
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2017-07-01 12:03:34 -03:00
wm4
ff2d21a58c
hevcdec: properly export some side data with frame threading
...
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-30 19:18:11 +02:00
James Almer
ac8ad8d098
x86/sbrdsp: sign extend start and end gprs in ff_sbr_hf_gen_sse
...
Tested-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2017-06-30 11:46:24 -03:00
Michael Niedermayer
de54a37c1d
avcodec/hevc_ps: Fix integer overflow with beta/tc offsets
...
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-30 16:24:16 +02:00
Michael Niedermayer
60a45713e7
avcodec/interplayvideo: Check ff_get_buffer() for failure
...
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-30 03:34:58 +02:00
Paul B Mahol
3821c004e2
avcodec/interplayvideo: fix regression causing artifacts
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-06-29 16:43:40 +02:00
Paul B Mahol
4d681269e0
avcodec/gdv: add decompression for 2 and 5 method
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-06-29 15:54:20 +02:00
Michael Niedermayer
c709f009da
avcodec/cfhd: Fix invalid left shift of negative value
...
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-28 23:39:11 +02:00
Michael Niedermayer
bc6ab72bc7
avcodec/vb: Check vertical GMC component before multiply
...
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-28 23:39:11 +02:00
Paul B Mahol
f0edab6e63
avcodec/interplayvideo: use correct context when checking for enough bytes
...
Fixes #6502 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-06-28 19:38:22 +02:00
James Darnley
0c2acccd4b
avcodec/x86: use new x86-64 functions for -idct simple
...
They now match according to FATE, barring any further bugs with untested
parts
2017-06-28 17:27:35 +02:00
James Darnley
d7246ea9f2
avcodec/x86: add an 8-bit simple IDCT function based on the x86-64 high depth functions
...
Includes add/put functions
Rounding contributed by Ronald S. Bultje
2017-06-28 17:27:35 +02:00
James Darnley
8b19467d07
avcodec/x86: allow future 8-bit simple idct to have "DC only hack"
...
Created by Ronald S. Bultje
2017-06-28 17:27:35 +02:00
Paul B Mahol
c1d1274bfc
avcodec/interplayvideo: return void
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-06-28 17:18:13 +02:00
Paul B Mahol
ed782bebf5
avcodec/interplayvideo: fix dead-lock
...
Fixes #6499 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-06-28 17:14:30 +02:00
Paul B Mahol
613ccdaaac
avcodec/interplayvideo: use int16_t instead of short
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-06-28 17:07:49 +02:00
Paul B Mahol
42f516b5d3
avcodec/interplayvideo: check that video_size is >0
...
Fixes #6498 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-06-28 17:02:07 +02:00