James Almer
3e076faf3b
Merge commit '1e56173515826aa4d680d3b216d80a3879ed1c68'
...
* commit '1e56173515826aa4d680d3b216d80a3879ed1c68':
rtsp: add pkt_size option
Merged-by: James Almer <jamrial@gmail.com>
2019-05-02 13:02:58 -03:00
Paul B Mahol
bf5d814f10
avcodec/wavpackenc: use ff_clz()
2019-05-02 15:36:16 +02:00
Michael Niedermayer
7eba264513
avcodec/cinepak: Add missing const
...
Found-by: <mkver>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-05-02 08:20:30 +02:00
Paul B Mahol
d3d1d5936f
avfilter/vf_tonemap: add slice threading
2019-05-01 21:19:58 +02:00
Paul B Mahol
a7fa89fa0b
avfilter/avf_abitscope: switch to activate
2019-05-01 21:17:55 +02:00
Paul B Mahol
255feeccc5
avfilter/af_biquads: add timeline support
2019-05-01 12:59:54 +02:00
Paul B Mahol
01204c04b0
avfilter/af_stereowiden: add timeline support
2019-05-01 12:40:25 +02:00
Paul B Mahol
0ee65ea95c
avfilter/af_extrastereo: add timeline support
2019-05-01 12:33:56 +02:00
Paul B Mahol
d010bfad31
avfilter/af_crossfeed: add timeline support
2019-05-01 12:31:52 +02:00
Michael Niedermayer
19af948e53
avcodec/agm: Check output size before allocation
...
Fixes: OOM
Fixes: 14198/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AGM_fuzzer-5723579234123776
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-04-30 21:25:01 +02:00
Michael Niedermayer
f4a1b8d409
avcodec/truemotion2: Fix 2 integer overflows in tm2_update_block()
...
Fixes: signed integer overflow: -2147483648 + -1 cannot be represented in type 'int'
Fixes: 14107/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5694078680825856
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-04-30 21:24:49 +02:00
Michael Niedermayer
b606493717
avcodec/cinepak: Check slice_size before allocating image
...
Fixes: Timeout (16sec -> 125msec)
Fixes: 14283/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CINEPAK_fuzzer-5742851457024000
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-04-30 21:24:04 +02:00
Paul B Mahol
5a39b797ac
avfilter/avf_showspectrum: convert some doubles to floats
2019-04-30 20:36:33 +02:00
Lauri Kasanen
d0e4d0429e
swscale/ppc: VSX-optimize hscale_fast
...
./ffmpeg -f lavfi -i yuvtestsrc=duration=1:size=1200x1440 -sws_flags fast_bilinear \
-s 2400x720 -f rawvideo -vframes 5 -pix_fmt abgr -nostats test.raw
4.27 speedup for hyscale_fast:
24796 UNITS in hyscale_fast, 4096 runs, 0 skips
5797 UNITS in hyscale_fast, 4096 runs, 0 skips
4.48 speedup for hcscale_fast:
19911 UNITS in hcscale_fast, 4095 runs, 1 skips
4437 UNITS in hcscale_fast, 4096 runs, 0 skips
2019-04-30 14:41:28 +03:00
Linjie Fu
2d81acaa1a
lavu/hwcontext_qsv: Fix the realign check for hwupload
...
Fix the aligned check in hwupload, input surface should be 16 aligned
too.
Partly fix #7830 .
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
2019-04-30 17:14:23 +08:00
Paul B Mahol
38c170d54c
avfilter/af_asoftclip: add timeline support
2019-04-30 11:02:36 +02:00
Paul B Mahol
9cc10418b3
avfilter/af_dynaudnorm: add timeline support
2019-04-30 10:56:39 +02:00
Paul B Mahol
c82d81ba42
avfilter/af_dynaudnorm: always update delay when flushing
2019-04-30 10:05:23 +02:00
Paul B Mahol
ac551c54b1
avfilter/vf_normalize: add timeline support
2019-04-29 23:28:40 +02:00
Paul B Mahol
e6c7d838ea
avfilter/af_adeclick: switch to activate
2019-04-29 22:19:15 +02:00
Paul B Mahol
12a284fa63
avfilter/af_rubberband: make use of initial input timestamp
2019-04-29 21:11:46 +02:00
Martin Vobruba
093a504414
avfilter/avf_showwaves: Add draw mode also to showwavespic filter
...
See commit a8c2d375ca68b7f001564ced14d8ac0757f53a29
2019-04-29 20:31:05 +02:00
Paul B Mahol
31990046ac
avfilter/f_ebur128: use correct type for chl
2019-04-29 16:46:42 +02:00
Paul B Mahol
d7fead80ad
avfilter/af_dynaudnorm: switch to activate
2019-04-29 15:12:42 +02:00
Paul B Mahol
a40bcb5c93
avfilter/af_rubberband: switch to activate
2019-04-29 14:22:13 +02:00
Paul B Mahol
a89ec33fd5
avfilter/af_rubberband: check if rbs is valid
2019-04-29 13:47:46 +02:00
Paul B Mahol
21d1bb00c4
avfilter/af_sofalizer: switch to activate
2019-04-29 13:35:04 +02:00
Paul B Mahol
21b1f08ea2
avfilter/avf_avectorscope: switch to activate
2019-04-29 12:52:50 +02:00
Paul B Mahol
77aacdb036
avfilter/avf_ahistogram: switch to activate
2019-04-29 12:43:18 +02:00
Paul B Mahol
a66324cd52
avfilter/avf_ahistogram: properly name pads
2019-04-29 12:28:38 +02:00
Paul B Mahol
ce774e30ff
avfilter/avf_showspectrum: add log scale for frequency plot
2019-04-29 11:45:30 +02:00
Matthias Troffaes
90b21ae5b5
avfilter/af_astats: fix msvc compile error
...
MSVC requires an explicit cast from void * to void when applying the
ternary conditional operator to switch between methods that return
void.
2019-04-29 11:08:49 +02:00
James Almer
45048ece81
avcodec/cbs_h2645: use the fixed() macro for forbidden_zero_bit
...
This follows the spec definition, and removes a field from the relevant
structs.
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
2019-04-28 20:29:40 -03:00
James Almer
16c50abb50
avcodec/cbs_h2645: add macros to read and write fields with no custom range of values
...
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
2019-04-28 20:28:42 -03:00
James Almer
67f9d3f461
avcodec/cbs_av1: add missing value range constrains to timecode Metadata OBU
...
Also infer the value time_offset_length as 0 when it's not present.
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
2019-04-28 19:48:45 -03:00
Marton Balint
3dee6c0997
avformat/mxfdec: fix and enhance RIP KLV length checks
...
KLV length is BER encoded (variable size), but the code assumed the encoding to
always use 4 bytes.
Fixes parsing Random Index Pack in samples/MXF/issue2160/PW0805A0V01.4C5B5636.EFA330.mxf.
Signed-off-by: Marton Balint <cus@passwd.hu>
2019-04-28 21:55:28 +02:00
Marton Balint
fc15e8306f
avformat/mxfdec: take into account run-in in find_partition_by_offset
...
Also rename the function to find_partition_by_absolute_offset to make it clear
offset is absolute.
Signed-off-by: Marton Balint <cus@passwd.hu>
2019-04-28 21:55:28 +02:00
Marton Balint
5b6960f955
avformat/mxfdec: guess wrapping of tracks by other tracks with the same body sid
...
This affects the following samples:
samples/ffmpeg-bugs/roundup/issue1775/av_seek_frame_failure.mxf
samples/ffmpeg-bugs/trac/ticket1957/16ch.mxf
samples/ffmpeg-bugs/trac/ticket5016/r0.mxf
samples/ffmpeg-bugs/trac/ticket5016/r1.mxf
samples/ffmpeg-bugs/trac/ticket5316/hq.MXF
samples/ffmpeg-bugs/trac/ticket5316/hqx.MXF
Some AVPacket->pos values are changed because for frame wrapped tracks we point
to the KLV offset and not the data.
Signed-off-by: Marton Balint <cus@passwd.hu>
2019-04-28 21:55:28 +02:00
Marton Balint
a5136426a7
avformat/mxfdec: rework mxf_essence_container_end
...
We find the last essence container much faster if we go through the partitions
backwards...
Signed-off-by: Marton Balint <cus@passwd.hu>
2019-04-28 21:55:28 +02:00
Paul B Mahol
ea80af659c
avcodec/scpr: avoid using uninitialized value
...
Fixes #7872 .
2019-04-28 11:09:26 +02:00
Paul B Mahol
5840a7f8a6
avfilter/vf_lut3d: increase MAX_LEVEL
2019-04-28 10:52:21 +02:00
Paul B Mahol
d5b2458f46
avfilter/vf_lut3d: fix range domain processing for .cube format
...
The ranges are for input, not for output.
2019-04-28 09:32:55 +02:00
Michael Niedermayer
8019395889
avcodec/pnm_parser: Remember the length already scanned for ascii images
...
Fixes: speed regression with xmap_samsung_gear_2560x1280.pgm
Found-by: Michael Koch
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-04-27 22:36:46 +02:00
Michael Niedermayer
9fc1031ac2
avcodec/pnm_parser: Remember the size of the image and do not reparse the header
...
Fixes: Timeout (11sec -> 60ms)
Fixes: 14270/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PAM_fuzzer-5734809634078720
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>
2019-04-27 22:36:46 +02:00
James Almer
938cb783d4
avcodec/scpr3: add missing check for decode_value3() return value
...
Fixes ticket #7866 .
Signed-off-by: James Almer <jamrial@gmail.com>
2019-04-27 16:15:00 -03:00
Paul B Mahol
163bb087f8
avformat/microdvddec: skip empty lines
2019-04-27 12:57:18 +02:00
Paul B Mahol
6347146e3d
avformat/subtitles: ignore extra '\r' at line endings
2019-04-27 12:49:56 +02:00
Timo Rothenpieler
2e254bb897
avcodec/nvenc: fix indentation
2019-04-27 12:33:08 +02:00
Timo Rothenpieler
23ed147e8f
avcodec/nvenc: only unregister input resources when absolutely needed
...
This reverts nvenc to old behaviour, which in some super rare edge cases
performs better.
The implication of this is that any potential API user who relies on
nvenc cleaning up every frames device resources after it's done using
them will have to change their usage pattern.
That should not be a problem, since pretty much every normal usage
pattern automatically implies that surfaces are reused from a common
pool, since constant re-allocation is also very expensive.
2019-04-27 12:33:08 +02:00
Jun Zhao
d6489ddb7a
lavf/hls: Remove HLSContext.strict_std_compliance field
...
After the commit 9f61abc8111, we can use AVFormatContext.strict_std_compliance
instead of HLSContext.strict_std_compliance to avoid the code redundancy.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-04-27 15:49:26 +08:00