summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avformat/utils: make av_url_split search for hashmark as well to separate ↵Marton Balint2020-02-15
| | | | | | | | | | | hostname RFC 3986 states that the generic syntax uses the slash ("/"), question mark ("?"), and number sign ("#") characters to delimit components that are significant to the generic parser's hierarchical interpretation of an identifier. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/tests/url: add av_url_split testsMarton Balint2020-02-15
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/tests/url: make format more readableMarton Balint2020-02-15
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/utils: Fix memleaks in avformat_open_input()Andreas Rheinhardt2020-02-15
| | | | | | | | | | | | | | | A demuxer might have allocated memory while reading the header. If reading the header was successfull and an error happens before returning (e.g. when queueing the attached pictures), the read_close function would have never been called, so that all those allocations would leak. This commit changes this. Furthermore, there would be even more memleaks if the error level was set to AV_EF_EXPLODE in case there is both metadata and id3v2 metadata. This has been fixed, too. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* compat/os2threads: define INCL_DOSERRORSDave Yeo2020-02-15
| | | | | | | This is needed to pull in the define for ERROR_TIMEOUT Signed-off-by: Dave Yeo <daveryeo@telus.net> Signed-off-by: Marton Balint <cus@passwd.hu>
* MAINTAINERS: Add myself as libzmq maintainerAndriy Gelman2020-02-15
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/hwcontext_d3d11va: Use secure dlopen.Matt Oliver2020-02-15
| | | | dlopen contains additional security to prevent dll hijacking compared to standard LoadLibrary.
* avfilter/vf_phase: add >8 bit supportPaul B Mahol2020-02-15
|
* avcodec: add cdtoons decoderAlyssa Milburn2020-02-15
| | | | | | | This adds a decoder for Broderbund's sprite-based QuickTime CDToons codec, based on the decoder I wrote for ScummVM. Signed-off-by: Alyssa Milburn <amilburn@zall.org>
* avfilter/opencl: use av_fopen_utf8()Paul B Mahol2020-02-14
|
* avfilter/vf_fieldhint: use av_fopen_utf8()Paul B Mahol2020-02-14
|
* avfilter/vf_lut3d: use av_fopen_utf8()Paul B Mahol2020-02-14
|
* avcodec/pcm_tablegen: nits, reindentPaul B Mahol2020-02-14
|
* lavu/tx: improve 3-point fixed precisionLynne2020-02-14
| | | | | There's just no reason not to when its so easy (albeit messy) and its also reducing the precision of all non-power-of-two transforms that use it.
* avcodec/dstdec: Use local channels variableMichael Niedermayer2020-02-14
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fftools/ffprobe: Remove unneeded castsAndreas Rheinhardt2020-02-14
| | | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dvdsub: Fix warning about incompatible pointer typeAndreas Rheinhardt2020-02-14
| | | | | | | | | | | | | | | Fixes "passing argument 2 of ‘strtoul’ from incompatible pointer type [-Wincompatible-pointer-types]" ("expected ‘char ** restrict’ but argument is of type ‘const char **’") for GCC and "passing 'const char **' to parameter of type 'char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]" for Clang. The cast itself is safe; it is only needed because strtoul itself is not const-correct. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/vf_remap: add fill color optionPaul B Mahol2020-02-14
|
* avfilter: add pad opencl filterPaul B Mahol2020-02-14
|
* avcodec/cbs_av1: add missing value constrains to point_y_value, ↵James Almer2020-02-13
| | | | | | | | | | | point_cb_value and point_cr_value If i is greater than 0, it is a requirement of bitstream conformance that point_y_value[ i ] is greater than point_y_value[ i - 1 ]. If i is greater than 0, it is a requirement of bitstream conformance that point_cb_value[ i ] is greater than point_cb_value[ i - 1 ]. If i is greater than 0, it is a requirement of bitstream conformance that point_cr_value[ i ] is greater than point_cr_value[ i - 1 ]. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
* lavu/tx: slightly optimize fft15Lynne2020-02-13
| | | | Saves 2 additions.
* lavu/tx: undef the correct macroLynne2020-02-13
| | | | It was renamed and no warning was given for undeffing a nonexisting one.
* lavu/tx: implement 32 bit fixed point FFT and MDCTLynne2020-02-13
| | | | | | | | | | | | | | | | | | | | Required minimal changes to the code so made sense to implement. FFT and MDCT tested, the output of both was properly rounded. Fun fact: the non-power-of-two fixed-point FFT and MDCT are the fastest ever non-power-of-two fixed-point FFT and MDCT written. This can replace the power of two integer MDCTs in aac and ac3 if the MIPS optimizations are ported across. Unfortunately the ac3 encoder uses a 16-bit fixed point forward transform, unlike the encoder which uses a 32bit inverse transform, so some modifications might be required there. The 3-point FFT is somewhat less accurate than it otherwise could be, having minor rounding errors with bigger transforms. However, this could be improved later, and the way its currently written is the way one would write assembly for it. Similar rounding errors can also be found throughout the power of two FFTs as well, though those are more difficult to correct. Despite this, the integer transforms are more than accurate enough.
* avcodec/midivid: only multiple of 4 width/height are possiblePaul B Mahol2020-02-13
|
* avcodec/midivid: improve decoding of widths not multiple of 32Paul B Mahol2020-02-13
|
* avcodec/h264_ps: Return error if pps has FMO parametersAndriy Gelman2020-02-12
| | | | | | | FMO is not supported and fields related to FMO are not parsed, meaning that any fields which follow will be corrupt. Signed-off-by: James Almer <jamrial@gmail.com>
* fftools/ffmpeg: Integrate two checksAndreas Rheinhardt2020-02-13
| | | | | | | | | For audio packets with dts != AV_NOPTS_VALUEs the dts was converted twice to the muxer's timebase during streamcopy, once as a normal packet and once specifically as an audio packet. This has been changed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/avcodec: NitsAndreas Rheinhardt2020-02-13
| | | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/apedec: Fix invalid shift with 24 bpsMichael Niedermayer2020-02-12
| | | | | | | | | Fixes: left shift of negative value -463 Fixes: 20542/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5688714435231744 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>
* avfilter/vf_xmedian: implement percentile optionPaul B Mahol2020-02-12
|
* avfilter/vf_median: implement percentile optionPaul B Mahol2020-02-12
|
* avcodec/h264_ps: Show VUI and SPS overread messages just once per frame threadMichael Niedermayer2020-02-12
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/log: Add av_log_once() for printing a message just once with a high ↵Michael Niedermayer2020-02-12
| | | | | | | | | log level Compared to ad-hoc if(printed) ... code this allows the user to disable it by adjusting the log level Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/utils: Fix undefined behavior in ff_configure_buffers_for_index()Dale Curtis2020-02-11
| | | | | | | | When e2_pts == INT64_MIN and e1_pts >= 0 the calculation of e2_pts - e1_pts will overflow an int64_t. Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/libvpxenc: add a way to explicitly set temporal layer idWonkap Jang2020-02-11
| | | | | | | | | In order for rate control to correctly allocate bitrate to each temporal layer, correct temporal layer id has to be set to each frame. This commit provides the ability to set correct temporal layer id for each frame. Signed-off-by: James Zern <jzern@google.com>
* avfilter/vf_colorlevels: add support for commandsPaul B Mahol2020-02-11
|
* avfilter/vf_colorkey: add support for commandsPaul B Mahol2020-02-11
|
* libfdk-aacdec: Allow explicitly disabling the DRC reference level optionMartin Storsjö2020-02-11
| | | | | | | | | Previously, it was always left in the automatic mode, if the option was set to the only special (negative) value. Now there's two separate special values for this option, -1 for automatic (metadata based) and -2 for explicitly disabled. Signed-off-by: Martin Storsjö <martin@martin.st>
* libfdk-aacdec: Use the decoder's default level limiter settingsMartin Storsjö2020-02-11
| | | | | | | | It was disabled by default in 2dbd35b00c6433e587d5f44d5dbc8972ebbaa88e as it added delay, but now we compensate for the delay properly by offsetting timestamps. Signed-off-by: Martin Storsjö <martin@martin.st>
* libfdk-aacdec: Apply the decoder's output delay on timestampsMartin Storsjö2020-02-11
| | | | | | | The delay is normally zero when the level limiter is disabled, but if enabled, there's a small delay. Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat/mpjpegdec: Remove redundant initializationsAndreas Rheinhardt2020-02-11
| | | | | | | | The AVPacket destined for a demuxer's output has already been initialized before it reaches the demuxer. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/vf_dedot: Fix leak of AVFrame if making it writable failsAndreas Rheinhardt2020-02-11
| | | | | | | | | | | | Even in this scenario, the frame still contains references to data that won't be freed if the frame isn't unreferenced. And the AVFrame itself will leak, too. Fixes Coverity issue #1441422. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat: Remove unnecessary av_packet_unref()Andreas Rheinhardt2020-02-10
| | | | | | | | | Since bae8844e the packet will always be unreferenced when a demuxer returns an error, so that a lot of calls to av_packet_unref() in lots of demuxers are now redundant and can be removed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/tty: fix last timestamp for fatePaul B Mahol2020-02-10
|
* avfilter/vf_thumbnail: fix possible crash on errorPaul B Mahol2020-02-10
|
* avfilter/vf_thumbnail: add timeline supportPaul B Mahol2020-02-10
|
* libswscale/x86/yuv2rgb: add ssse3 versionTing Fu2020-02-10
| | | | | | | | | | Tested using this command: /ffmpeg -pix_fmt yuv420p -s 1920*1080 -i ArashRawYuv420.yuv \ -vcodec rawvideo -s 1920*1080 -pix_fmt rgb24 -f null /dev/null The fps increase from 389 to 640 on Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz Signed-off-by: Ting Fu <ting.fu@intel.com>
* avformat/tty: add seeking supportPaul B Mahol2020-02-10
|
* avformat/tty: make probing strict for first 8 bytesPaul B Mahol2020-02-10
|
* avcodec/cbs_jpeg: Use memcpy when writing picturesAndreas Rheinhardt2020-02-09
| | | | | | | This is possible because the size of a scan header is always a multiple of a byte. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>