summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avutil/thread: Add pthread_cond_timedwait functionMatt Oliver2020-01-21
| | | | | | v2: fix calculating milisecond times and use SleepConditionVariableSRW. Signed-off-by: Matt Oliver <protogonoi@gmail.com>
* tools/target_dec_fuzzer: Also Fuzz with CPU optimizations disabledMichael Niedermayer2020-01-21
| | | | | | This should improve coverage of *_c() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/target_dec_fuzzer: Fuzz private options of AC3/E-AC3Michael Niedermayer2020-01-21
| | | | | | This should improve AC-3 coverage Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/target_dec_fuzzer: Fuzz idct_algo valueMichael Niedermayer2020-01-21
| | | | | | This should improve coverage Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_v360: add support for fisheye input formatPaul B Mahol2020-01-21
|
* avcodec/j2kenc: Fix undefined shifts of negative numbersAndreas Rheinhardt2020-01-21
| | | | | | | | | | | Also add parentheses to some lines to make the operator precedence clearer. This affected the FATE-tests vsynth*-jpeg2000 and vsynth*-jpeg2000-97 (where * ranges over { 1, 2, 3, _lena }) as well as ticket #7983. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/libzmq: Replace fail statements with gotoAndriy Gelman2020-01-21
| | | | | | Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/libzmq: Check return of zmq_setsockoptAndriy Gelman2020-01-21
| | | | | Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/mjpegenc: Fix not writing RST tag after final slice.Carl Eugen Hoyos2020-01-21
| | | | Fixes ticket #8412.
* avfilter/vf_v360: add support for input fov to input sg formatPaul B Mahol2020-01-21
|
* doc/filters: v360: cylindrical supports inputPaul B Mahol2020-01-21
|
* avcodec/adxdec: Remove unnecessary left-shiftAndreas Rheinhardt2020-01-21
| | | | | | | | | | | Replace "(a * (1 << shift) * b + c) >> shift" by "a * b + (c >> shift)". It is equivalent to the old code because a is in the range of uint16_t, shift is 12 and b is effectively a signed 4-bit number, so that no overflow/truncation of high bits happens during the multiplication (overflow would be undefined anyway). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/adxenc: Avoid undefined left shift of negative numbersAndreas Rheinhardt2020-01-21
| | | | | | | | | | Replace "((a << shift) + b) >> shift" by "a + (b >> shift)". This avoids a left shift which also happens to trigger undefined behaviour in case "a" is negative. This affected the FATE-tests acodec-adpcm-adx and acodec-adpcm-adx-trellis; it also fixes ticket #8008. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/adpcm: Fix undefined left shifts of negative numbersAndreas Rheinhardt2020-01-21
| | | | | | | | Affected the adpcm-afc, adpcm-ea-1, adpcm-ea-2, adpcm-ea-maxis-xa, adpcm-thp and ea-cdata FATE-tests. Also fixes ticket #8487. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_v360: add support for cylindrical input formatPaul B Mahol2020-01-21
|
* avfilter/vf_v360: add support for flat input formatPaul B Mahol2020-01-20
|
* avfilter/vf_v360: rewrite fov_from_dfov()Paul B Mahol2020-01-20
|
* doc/fftools-common-opts: small fix to -report documentation.Nicolas George2020-01-20
|
* doc/filters: clarify resampling and linear mode in loudnormGyan Doshi2020-01-20
|
* avformat/hlsenc: fix default AES key file url with variant streamsBela Bodecs2020-01-20
| | | | | | | | | | | | | | Currently when hls_enc is active and there are multiple variant stream outputs, default key file url construction does not work, because it is based on the FormatContext' url field. But in case of multiple variant streams, it contains the variant m3u8 output playlist url that contains the %v placeholder. So the result key file url will hold the %v placeholder causing run time error message about "could not write the key file". This patch correct this behaviour, and use the master playlist url for constructing the output key file url when master playlist is vailable. Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
* avformat/hlsenc: program_date_time and append_list flags conflictBela Bodecs2020-01-20
| | | | | | | | | | | | | | | | | | | | | | When program_date_time flag is present, in m3u8 playlist file each segment has a corresponding EXT-X-PROGRAM-DATE-TIME value. The intial program-date-time value is the actual current time at init and each new segment increments this value by its duration. When append_list flags is also present, existing playlist parsing by hls_append_segment treats existing segments as new segments regarding the program-date-time calculation. But it should not do that, because this way all real the new segments' EXT-X-PROGRAM-DATE-TIME values will be shifted erroneously by the sum duration of existing segments. Instead it should have decremented the initial program-date-time value by its duration. This would ensure that the first new segment's program-date-time value had the current time as it is expected. This patch corrects this behaviour and prevent existing segments to increment the value of initial_prog_date_time variable but decrements it. Reviewed-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
* avformat/udp: modify the not write-only to read-only mode.Xuchen Su2020-01-20
| | | | | | not write-only include read-write pseudo flag. so make the flag read-only Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc: compare without the last directory separator in ↵Steven Liu2020-01-20
| | | | | | | | | | get_relative_url fix ticket: 8461 there is no problem before commit 75aea52a1051a22bdebd0b7a8098ac6479a529a0 Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/dashenc: use ff_rename instead of avpriv_io_moveMarton Balint2020-01-19
| | | | | | ff_rename always logs the error message. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/avio: fix ff_rename to respect used protocolMarton Balint2020-01-19
| | | | | | | | | | | Also simplify it and make it always log the error. This fixes for example the image2 muxer when used with an URL which also contains the protocol: ffmpeg -f lavfi -i testsrc -vframes 10 -atomic_writing 1 file:out%d.png Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/avio: move ff_rename implementation from internal.h to avio.cMarton Balint2020-01-19
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/vf_v360: replace rest of roundf() with lrintf()Paul B Mahol2020-01-19
|
* avfilter/vf_v360: change remaps to int16_t typePaul B Mahol2020-01-19
|
* avfilter/vf_v360: move map variable upPaul B Mahol2020-01-19
|
* avfilter/vf_v360: make more stuff constPaul B Mahol2020-01-19
|
* avfilter/pad: improve error check for w and hGyan Doshi2020-01-19
| | | | Target dimensions have to cover entire input.
* avformat/libsrt: fix enabling nonblocking modeAnthony Delannoy2020-01-19
| | | | | | | | As written in https://github.com/Haivision/srt/blob/v1.4.1/docs/API.md, the nonblock mode is activated if SRTO_SNDSYN and SRTO_RCVSYN, for sending and receiving respectively, are set to 0. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/img2enc: add support for specifying protocol optionsMarton Balint2020-01-18
| | | | | | v2: simplified example Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/hevc_mp4toannexb_bsf: check that nalu size doesnt overflowMichael Niedermayer2020-01-18
| | | | | | | | Fixes: Out of array access Fixes: 19299/clusterfuzz-testcase-minimized-ffmpeg_BSF_HEVC_MP4TOANNEXB_fuzzer-5169193398042624 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/hevc_mp4toannexb_bsf: Avoid NULL memcpy()Michael Niedermayer2020-01-18
| | | | | | | | Fixes: invalid memcpy use Fixes: 19299/clusterfuzz-testcase-minimized-ffmpeg_BSF_HEVC_MP4TOANNEXB_fuzzer-5169193398042624 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cbs_av1: Check leb128 values readMichael Niedermayer2020-01-18
| | | | | | | | | | | "It is a requirement of bitstream conformance that the value returned from the leb128 parsing process is less than or equal to (1 << 32) - 1." Fixes: assertion failure Fixes: 19293/clusterfuzz-testcase-minimized-ffmpeg_BSF_TRACE_HEADERS_fuzzer-5749508361420800 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/iff: Check input space before loop in decode_delta_d()Michael Niedermayer2020-01-18
| | | | | | | | Fixes: Timeout (114sec ->108ms) Fixes: 19290/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-5740598116220928 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/dtsdec: make S16LE discrimination sharperMichael Niedermayer2020-01-18
| | | | | | | | | | Both S16LE as well as DTS can have lots of 0 bytes in silent segments Using these results in error. Thus this patch skips 0 bytes in comparission. Fixes Ticket6561 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/vc1dec: Allocate only as much space as is unescapedMichael Niedermayer2020-01-18
| | | | | | | | | Fixes: OOM Fixes: 18137/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-5723834900021248 Fixes: 20037/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-5683758976204800 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_normalize: add support for >8 depthPaul B Mahol2020-01-18
|
* avfilter/vf_normalize: add support for planar rgbPaul B Mahol2020-01-18
|
* avfilter/vf_normalize: factor code dealing with AVFrame pixels outPaul B Mahol2020-01-18
|
* avfilter/vf_normalize: move luts into private contextPaul B Mahol2020-01-18
|
* avfilter/asrc_anoisesrc: add velvet noisePaul B Mahol2020-01-18
|
* avfilter/vf_v360: add perspective output projectionPaul B Mahol2020-01-18
|
* avcodec/libx265: zero the padding bytes in extradataJames Almer2020-01-18
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/hls: support data protocol in uri for EXT-X-MAPSteven Liu2020-01-18
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avfilter/vf_v360: add gaussian interpolationPaul B Mahol2020-01-18
|
* avfilter/vf_v360: fix some small nitsPaul B Mahol2020-01-18
|
* avfilter/vf_v360: add spline16 interpolationPaul B Mahol2020-01-18
|