78862488f8
avcodec/vp9: Check in decode_tiles() if there is data remaining
...
Fixes: Timeout
Fixes: 9330/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP9_fuzzer-5707345857347584
Fixes: 9775/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP9_fuzzer-5643845344690176
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-10-30 03:13:25 +01:00
0fb83b4c91
avcodec/vp56: Add vpX_rac_is_end() to check for the end of input
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-10-30 03:13:25 +01:00
c0692cb2bb
vaapi_encode_mpeg2: Fix width/height columns/rows confusion
...
Fixes #7522 .
2018-10-29 19:41:24 +00:00
4885ff663b
avcodec/vp3: reindent unpack_superblocks()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-10-29 17:00:49 +01:00
b5e7e437f4
avcodec/vp3: Do not recalculate coded_fragment_list for keyframes
...
This improves decoding speed of keyframes
Fixes: Timeout (102->27sec)
Fixes: 9642/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP3_fuzzer-6676767875006464
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-10-29 17:00:49 +01:00
f563180817
avcodec/vp3: Reuse local variable in unpack_superblocks()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-10-29 17:00:49 +01:00
88e3807aaf
avcodec/vp3: Do not initialize unused tables for keyframes in unpack_superblock()
...
Fixes: Timeout (139sec -> 102sec)
Fixes: 9642/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP3_fuzzer-6676767875006464
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-10-29 17:00:49 +01:00
7e1add2c51
doc/filters: add small description to geq filter section
...
Previously there was no description at all.
2018-10-29 16:45:27 +01:00
e95987f6ca
avfilter/af_afftdn: fix memory leaks reported by coverity
2018-10-28 22:33:20 +01:00
7070955d43
libaomenc: Add support for tiles
...
Adds an option to specify the number of tile rows and columns, then uses
a uniform tiling if possible and otherwise a fixed tiling with equal-sized
tiles to fill the frame.
Also adds -tile-columns and -tile-rows options to make tilings with
power-of-two numbers of tiles, matching the behaviour of the libvpx/VP9
encoder.
2018-10-28 16:42:41 +00:00
0c8b5cb369
avfilter/af_afftdn: add alias for sample_noise end
...
Added the same one as one mentioned in documentation.
2018-10-28 15:00:34 +01:00
bb54c0ae71
avfilter/af_afftdn: switch to activate
2018-10-28 14:31:03 +01:00
bdfd2e3c79
lavc/libxavs2: Remove yuv420p10le from fromat list.
...
now libxavs2 can't support 10bits mode, so remove the
yuv420p10le from fromat list.
Signed-off-by: Jun Zhao <jun.zhao@intel.com >
2018-10-28 15:16:04 +08:00
6885fa7499
lavc/libdavs2: Remove yuv420p10le from fromat list.
...
now libdavs2 can't support 10bits mode, so remove the
yuv420p10le from fromat list.
Signed-off-by: Jun Zhao <jun.zhao@intel.com >
2018-10-28 15:10:47 +08:00
c00ed8d0e7
lavc/libxavs2: enable OpenGop
...
Signed-off-by: hwren <hwrenx@126.com >
2018-10-28 14:20:29 +08:00
4c23262811
lavc/libxavs2: fix intra period meaning conflict
...
Signed-off-by: hwren <hwrenx@126.com >
2018-10-28 14:20:29 +08:00
9c190ad394
lavc/libxavs2: unified naming style
...
Signed-off-by: hwren <hwrenx@126.com >
2018-10-28 14:20:29 +08:00
cd34c6a57e
avfilter/vf_pixdesctest: Use 32bit read/write
...
This is needed for processing 32bit floats
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-10-27 22:39:27 +02:00
718044dc19
avutil/pixdesc: Add av_write_image_line2(), av_read_image_line2()
...
This is needed because of 32bit float formats (which are difficult to
store in 16bits)
This also fixes undefined behavior found by fate
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-10-27 22:39:27 +02:00
a5d98da4d6
avcodec/cbs_vp9: fix parsing sRGB samples
...
Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2018-10-27 16:06:36 -03:00
99ef8b8afd
avcodec/cbs_av1: fix parsing frame_size_with_refs
...
found_ref is not a single value in the bitstream. Fixes parsing files with
frame size changes.
Based on code from cbs_vp9.
Reviewed-by: Mark Thompson <sw@jkqxz.net >
Signed-off-by: James Almer <jamrial@gmail.com >
2018-10-27 16:06:36 -03:00
fef2162b6e
vaapi_encode: Add flag to mark encoders supporting only constant-quality
...
And set it for MJPEG.
2018-10-27 19:35:35 +01:00
a7eda762dc
vaapi_encode_h265: Enable multiple-slice support
2018-10-27 19:35:35 +01:00
a769e72c75
vaapi_encode_h264: Enable multiple-slice support
2018-10-27 19:35:35 +01:00
29816e278f
vaapi_encode_mpeg2: Use common slice sizing code
2018-10-27 19:35:35 +01:00
2923ed247e
vaapi_encode: Support configurable slices
...
This adds common code to query driver support and set appropriate
address/size information for each slice. It only supports rectangular
slices for now, since that is the most common use-case.
2018-10-27 19:35:35 +01:00
40ac622460
avfilter/window_func: add bohman window
2018-10-27 13:36:00 +02:00
59a35fe1f6
tests/api-h264-slice-test: use the correct function to free the AVHashContext
...
Fixes memleaks.
Signed-off-by: James Almer <jamrial@gmail.com >
2018-10-27 00:12:30 -03:00
0e9c01fd87
avformat/rpl: Support files containing 8 bit PCM or VIDC audio
...
Signed-off-by: Cameron Cawley <ccawley2011@gmail.com >
2018-10-26 13:39:25 +02:00
22238d0b94
avcodec: Implement Archimedes VIDC encoder/decoder
...
Signed-off-by: Cameron Cawley <ccawley2011@gmail.com >
2018-10-26 13:39:25 +02:00
fb7925ba2f
fate: add api-h264-slice test
...
This test ensures that you are able to send N number of slice NALUs in slice threaded mode to be decoded simultaneously
2018-10-26 11:51:04 +01:00
0a055f463a
lavc/h264dec: don't error out when receiving multiple IDR slices
...
This error isn't particularly helpful as checking for mixed IDR/non-IDR
NALUs would need to be done at a higher level to actually be accurate.
Removing the error allows an API user to send individual slice NALUs
(i.e. incomplete frames) so they can take advantage of slice
threading. The ticket which this error was added for (#4408 ) no
longer segfaults after removing this error (as the bug was likely
fixed more properly elsewhere).
2018-10-26 11:48:14 +01:00
4fcfb9c4eb
avfilter: add xstack filter
2018-10-26 12:40:54 +02:00
de43c227fd
avformat/dashenc: Support HTTP persistent for init segments as well
2018-10-26 11:49:47 +05:30
bf324359be
avcodec/vp9_parser: set profile in AVCodecContext
...
Signed-off-by: James Almer <jamrial@gmail.com >
2018-10-25 20:45:45 -03:00
963c16ed38
avfilter/vf_lut3d: do not error out if TITLE is after other lines
2018-10-25 23:23:51 +02:00
bd02a6d7ed
avfilter/af_adelay: switch to activate
...
Also use less memory in special case when all channels have common delay.
2018-10-25 23:11:37 +02:00
6a112349c2
configure: add missing optional SDL2 dependency to OpenGL outdev
...
Signed-off-by: James Almer <jamrial@gmail.com >
2018-10-24 21:12:32 -03:00
f370142ec0
lavfi/ebur128: Fix mixed declarations and code
2018-10-25 00:24:24 +01:00
b02490a497
avcodec/libx264: remove FF_CODEC_CAP_INIT_THREADSAFE flag
...
Libx264 uses strtok which is not thread safe. Strtok is used in
x264_param_default_preset in param_apply_tune in x264/common/base.c.
Therefore the flag must be removed.
x264 fixed the issue, once the fix is pushed to stable, an #if can be added
to re-enable the flag based on X264_BUILD number.
Fixes ticket #7446 .
Signed-off-by: Marton Balint <cus@passwd.hu >
2018-10-24 23:18:37 +02:00
3cc3cb663b
avutil/integer: Fix integer overflow in av_mul_i()
...
Found-by: fate
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-10-24 23:15:24 +02:00
203ccb8746
avcodec/msrle: Check that the input is large enough to contain a end of picture code
...
Fixes: Timeout
Fixes: 10625/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSRLE_fuzzer-5659651283091456
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-10-24 23:15:24 +02:00
87588caf8c
Revert "avcodec/decode: copy the output parameters from the last bsf in the chain back to the AVCodecContext"
...
This reverts commit f631c328e6
.
The avcodec_parameters_to_context() call was freeing and reallocating
AVCodecContext->extradata, essentially taking ownership of it, which according
to the doxy is user owned. This is an API break and has produced crashes in
some library users like Firefox[1].
Revert until a better solution is found to internally propagate the filtered
extradata back into the decoder context, or a decision is made to change the
API.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1486080
Signed-off-by: James Almer <jamrial@gmail.com >
2018-10-24 16:43:33 -03:00
156120fcf8
swscale/swscale_unscaled : rename packed_16bpc_bswap
...
is used for packed and planar format
2018-10-24 21:21:20 +02:00
26bf4a4050
swscale/unscaled : add grayf32 le to be
2018-10-24 21:21:14 +02:00
3db33b446f
swscale/utils : simplify unscaled initial test for float pixfmt
2018-10-24 21:21:10 +02:00
66974311b1
avfilter/show_info : add print of color information (range, color_primaries, color_trc, colorspace)
2018-10-24 21:21:05 +02:00
78f04843bf
doc/APIchanges: add entry for AV_FRAME_DATA_S12M_TIMECODE
...
Signed-off-by: James Almer <jamrial@gmail.com >
2018-10-24 14:57:25 -03:00
2d0ee127be
avcodec/nvdec: Push the context before destroying the decoder
...
This has no visible effects but I happened to run under the cuda
memcheck tool and it called it out as an error.
2018-10-24 10:43:41 -07:00
22d6d91649
avfilter/vf_waveform: abort early if there are no components to show
2018-10-24 18:33:52 +02:00