summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avfilter/f_sidedata: Add SEI_UNREGISTERED frame side data typeLimin Wang2020-08-23
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avformat/mpegtsenc: support DVB 6A descriptor for AC-3Limin Wang2020-08-23
| | | | | Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* libavformat/ffmetadec.c: Fix Use-of-uninitialized-valueThierry Foucu2020-08-22
| | | | | | | Check the return value of sscanf as it can return -1(EOF), for example when the first char in the line is 0x00 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavformat/nut: Support SSA and ASS subtitleshax@riseup.net2020-08-22
| | | | | | | ffmpeg documentation says the NUT container supports SubStation Alpha This brings actual functionality in line with documentation. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dvbsubdec: error out on unsupported coding methodsClément Bœsch2020-08-22
|
* avcodec/dvbsubdec: request samples for missing coding methodsClément Bœsch2020-08-22
|
* avcodec/dvbsubenc: fix onject/object typoClément Bœsch2020-08-22
|
* avcodec/dvbsubenc: reindent after previous commitClément Bœsch2020-08-22
|
* avcodec/dvbsubenc: merge rectangle encode code blocksClément Bœsch2020-08-22
|
* avcodec/dvbsub: add "enc" suffix to encoderClément Bœsch2020-08-22
|
* avcodec/dvbsub: remove useless indirection in dvbsub_encode.Clément Bœsch2020-08-22
|
* fate: add fate-sub-dvb testClément Bœsch2020-08-22
| | | | | | The dvbsubtest_filter.ts sample is a filtered version of the Videolan sample database (samples/sub/dvbsub/dvbsubtest.ts) using Project X. It originates from ticket #8844.
* avcodec/rzpaenc: Remove set-but-unused variableAndreas Rheinhardt2020-08-22
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec/libaomdec: Set SAR based on RenderWidth and RenderHeightDerek Buitenhuis2020-08-21
| | | | | | This is the same thing we do in libdav1d.c Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avcodec/proresenc: infer array lengthsMichael Bradshaw2020-08-21
| | | | Signed-off-by: Michael Bradshaw <mjbshaw@google.com>
* avfilter/af_biquads: add different transform typesPaul B Mahol2020-08-21
|
* avfilter/af_arnndn: use RNN_COPY macro to copyPaul B Mahol2020-08-21
|
* avcodec: add RPZA encoderPaul B Mahol2020-08-21
|
* avcodec/proresenc: add support for PQ and HLGMichael Bradshaw2020-08-21
| | | | Signed-off-by: Michael Bradshaw <mjbshaw@google.com>
* avformat/movenc: write the colr atom by defaultMichael Bradshaw2020-08-21
| | | | | | | | | | | | | | | | | The write_colr flag has been marked as experimental for over 5 years. It should be safe to enable its behavior by default as follows: - Write the colr atom by default for mp4/mov if any of the following: - The primaries/trc/matrix are all specified, OR - There is an ICC profile, OR - The user specified +write_colr - Keep the write_colr flag for situations where the user wants to write the colr atom even if the color info is unspecified (e.g., http://ffmpeg.org/pipermail/ffmpeg-devel/2020-March/259334.html) This fixes https://trac.ffmpeg.org/ticket/7961 Signed-off-by: Michael Bradshaw <mjbshaw@google.com>
* avfilter/formats: Remove unused functionsAndreas Rheinhardt2020-08-21
| | | | | | | | | | | | | | This commit removes ff_parse_sample_format(), ff_parse_time_base() and ff_query_formats_all_layouts() from libavfilter/formats.c. All of these functions were completely unused. ff_parse_time_base() has not been used at all since it had been added in 3448404a707b6e236a2ffa7b0453b3300de41b7b; the last caller of ff_parse_sample_format has been removed in commit d1c49bcae9b7fd41df5c6804ac7f6a5c271a7c2e. And the one and only caller of ff_query_formats_all_layouts() (the asyncts filter) has been removed in commit a8fe8d6b4a35c95aa94fccde5f001041278d197c. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avfilter/audio: Remove unused array, move used-only-once arrayAndreas Rheinhardt2020-08-21
| | | | | | | | | | | ff_planar_sample_fmts_array is unused (and was unused since it was added in 4d4098da009c8340997b8d1abedbf2062e4aa991) and therefore this commit removes it; ff_packed_sample_fmts_array meanwhile is used only once (in the amerge filter) and therefore it has been moved to this place. Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn_backend_native_layer_avgpool: Fix invalid assignment, use av_assertAndreas Rheinhardt2020-08-21
| | | | | | | | | | | | | | | | | | | | | | | | dnn_execute_layer_avg_pool() contains the following line: assert(avgpool_params->padding_method = VALID); This statement contains an assignment where obviously a comparison was intended. Furthermore, *avgpool_params is const, so that the attempted assignment leads to a compilation failure if asserts are enabled (i.e. if DEBUG is defined which leads libavutil/internal.h to not define NDEBUG). Moreover, the enumeration constant VALID actually has the value 0, so that the assert would be triggered if a compiler compiles this with asserts enabled. Finally, the statement uses assert() directly instead of av_assert*(). All these errors have been fixed. Thanks to ubitux for providing a FATE-box [1] where DEBUG is defined. [1]: http://fate.ffmpeg.org/history.cgi?slot=x86_64-archlinux-gcc-ddebug Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Guo, Yejun <yejun.guo@intel.com>
* avcodec/qdmc: reduce insanely huge tablesPaul B Mahol2020-08-21
|
* avfilter/vf_overlay: Remove superfluous ;Andreas Rheinhardt2020-08-21
| | | | | | | | | | | | | | | | In a function body, a redundant ; is just a null statement that does nothing. Yet outside a function body, a superfluous ';' like one that exists if one adds a ';' immediately after a function body's closing brace is actually invalid C that compilers happen to accept. Yet when compiled in -pedantic mode, both GCC as well as Clang emit warnings for this like "ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]". The scenario described above existed in vf_overlay.c as a result of macro expansion. This commit fixes it. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* doc/APIchanges: Remove version conflict separatorAndreas Rheinhardt2020-08-21
| | | | | | | Added in 06f26512046de1a84e045d219e7fa211c37ad0e4. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avfilter/fifo: Remove unused functions and headersAndreas Rheinhardt2020-08-21
| | | | | | | | | | | | | The functions were forgotten in 03c8fe49ea3f2a2444607e541dff15a1ccd7f0c2; removing them also means that the avassert.h and samplefmt.h headers are no longer used any more, so they have been removed, too. Moreover, video.h is unused since b077d8d9082d057d4c7abd9e0b1a98f9651cfaa8 and channel_layout.h is since fdd9663781e3ebc8ebed0704607abd174095a905. Both headers have therefore been removed, too. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* lavu/buffer: forward av_buffer_realloc() error code.Nicolas George2020-08-21
| | | | Fix CID 1457235.
* lavu/avstring: deprecate av_d2str().Nicolas George2020-08-21
| | | | | It is no longer used in our code base and does not seem to be used much in other projects.
* avfilter/libvmaf: mention csv as available log formatHarry Mallon2020-08-21
| | | | | Signed-off-by: Harry Mallon <harry.mallon@codex.online> Signed-off-by: Gyan Doshi <ffmpeg@gyani.pro>
* dnn/native: rename struct ConvolutionalNetwork to NativeModelTing Fu2020-08-21
| | | | | Signed-off-by: Ting Fu <ting.fu@intel.com> Reviewed-by: Guo, Yejun <yejun.guo@intel.com>
* avfilter/formats: CosmeticsAndreas Rheinhardt2020-08-21
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avfilter/formats: Factor checking for mergeability out of ff_merge_*Andreas Rheinhardt2020-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The callers of the ff_merge_*() functions fall into two categories with quite different needs: One caller is can_merge_formats() which only wants to test for mergeability without it merging anything. In order to do so, it duplicates the lists it intends to test and resets their owners so that they are not modified by ff_merge_*(). It also means that it needs to receive the merged list (and not only an int containing whether the lists are mergeable) to properly free it. The other callers want the lists to be actually merged. But given the fact that ff_merge_*() automatically updates the owners of the lists, they only want the information whether the merge succeeded or not; they don't want a link to the new list. Therefore this commit splits these functions in two: ff_merge_*() for the latter callers and ff_can_merge_*() for the former. ff_merge_*() doesn't need to return a pointer to the combined list at all and hence these functions have been modified to return an int, which allows to distinguish between incompability and memory allocation failures. ff_can_merge_*() meanwhile doesn't modify its arguments at all obviating the need for copies. This in turn implies that there is no reason to return a pointer to the new list, as nothing needs to be freed. These functions therefore return an int as well. This allowed to completely remove can_merge_formats() in avfiltergraph.c. Notice that no ff_can_merge_channel_layouts() has been created, because there is currently no caller for this. It could be added if needed. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avfilter/formats: Avoid code duplication when merging sampleratesAndreas Rheinhardt2020-08-20
| | | | | | | | | | Right now, ff_merge_samplerates() contains three instances of the MERGE_REF() macro, a macro which reallocates an array, updates some pointers in a loop and frees several buffers. This commit makes it possible to contain only one instance of said macro in the function, thereby reducing codesize. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* swscale/x86/output: add missing AVX2 support preprocessor wrappersJames Almer2020-08-20
| | | | | | Fixes compilation with old yasm Signed-off-by: James Almer <jamrial@gmail.com>
* lavfi: remove request_samples.Nicolas George2020-08-20
| | | | | Filters can use min_samples/max_samples if the number is constant or activate and ff_inlink_consume_samples().
* lavfi: remove needs_fifo.Nicolas George2020-08-20
|
* lavfi/vaf_spectrumsynth: switch to activate.Nicolas George2020-08-20
| | | | | | | Preserve the original workings, that does not use frames timestamps and therefore is very fragile. Allow to remove needs_fifo.
* lavfi/vf_overlay_qsv: remove needs_fifo.Nicolas George2020-08-20
| | | | It is not relevant when using activate and framesync.
* avcodec/h2645_parse: reset the H2645NAL type value before parsing a NAL headerJames Almer2020-08-20
| | | | | | | This will prevent reporting a bogus value in the log message when the header parsing fails. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/h2645_parse: skip empty NAL units earlierJames Almer2020-08-20
| | | | | | No point in trying to parse nonexistent header bits. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/h2645_parse: always return 0 on successful ↵James Almer2020-08-20
| | | | | | | | | h{264,evc}_parse_nal_header() calls HEVC NALs are no longer being skipped based on their nuh_layer_id value since ad326379c6. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/decode: move the ff_decode_frame_props() prototype to the proper headerJames Almer2020-08-20
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/libsrt: close listen fd in listener modeNicolas Sugino2020-08-20
| | | | | | | | | | | In listener mode the first fd is not closed when libsrt_close() is called because it is overwritten by the new accept fd. Added the listen_fd to the context to properly close it when libsrt_close() is called. Fixes trac ticket #8372. Signed-off-by: Nicolas Sugino <nsugino@3way.com.ar> Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/siff: Reject audio packets without audio streamMichael Niedermayer2020-08-20
| | | | | | | | | Fixes: Assertion failure Fixes: 24612/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-6600899842277376.fuzz 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>
* libavformat/r3d.c: Fix Use-of-uninitialized-value in filename.Thierry Foucu2020-08-20
| | | | | | | While reading the filename tag, it may return a EOF and we are still copying the file with uninitialized value. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavcodec/proresdec2: Setup qmat_chroma according to RDD36Harry Mallon2020-08-20
| | | | | Signed-off-by: Harry Mallon <harry.mallon@codex.online> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ffplay: do not set redundant channel count on abuffersink.Nicolas George2020-08-20
|
* lavfi/buffersink: add a summary documentation of the API.Nicolas George2020-08-20
|
* lavfi/buffersink: clearly document that the Params struct are unused.Nicolas George2020-08-20
|