]> git.sesse.net Git - ffmpeg/log
ffmpeg
3 years agoavcodec: Move all AVCodecParser.split functions to remove_extradata_bsf
Andreas Rheinhardt [Sat, 6 Mar 2021 23:28:14 +0000 (00:28 +0100)]
avcodec: Move all AVCodecParser.split functions to remove_extradata_bsf

The remove_extradata bsf is the only user of these functions.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Constify all the AVCodecParsers
Andreas Rheinhardt [Sat, 6 Mar 2021 23:20:43 +0000 (00:20 +0100)]
avcodec: Constify all the AVCodecParsers

Possible now that the next pointer no longer exists.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Constify AVCodecParserContext.parser
Andreas Rheinhardt [Sat, 6 Mar 2021 23:10:12 +0000 (00:10 +0100)]
avcodec: Constify AVCodecParserContext.parser

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Constify AVCodecs
Andreas Rheinhardt [Thu, 25 Feb 2021 09:50:26 +0000 (10:50 +0100)]
avcodec: Constify AVCodecs

Given that the AVCodec.next pointer has now been removed, most of the
AVCodecs are not modified at all any more and can therefore be made
const (as this patch does); the only exceptions are the very few codecs
for external libraries that have a init_static_data callback.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavdevice/avdevice: Constify av_*_device_next API
Andreas Rheinhardt [Thu, 25 Feb 2021 01:58:13 +0000 (02:58 +0100)]
avdevice/avdevice: Constify av_*_device_next API

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavdevice/avdevice: Constify avdevice_list_input_sources/output_sinks
Andreas Rheinhardt [Thu, 25 Feb 2021 01:54:18 +0000 (02:54 +0100)]
avdevice/avdevice: Constify avdevice_list_input_sources/output_sinks

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/avformat, utils: Make av_find_best_stream const-correct
Andreas Rheinhardt [Thu, 25 Feb 2021 00:53:40 +0000 (01:53 +0100)]
avformat/avformat, utils: Make av_find_best_stream const-correct

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/codec, allcodecs: Constify the AVCodec API
Andreas Rheinhardt [Thu, 25 Feb 2021 06:45:51 +0000 (07:45 +0100)]
avcodec/codec, allcodecs: Constify the AVCodec API

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/avformat: Constify AVFormatContext.*_codec pointers
Andreas Rheinhardt [Thu, 25 Feb 2021 04:32:20 +0000 (05:32 +0100)]
avformat/avformat: Constify AVFormatContext.*_codec pointers

This also allows to exclusively use pointers to const AVCodec in
fftools/ffmpeg_opt.c.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agolibavresample: Remove deprecated library
Andreas Rheinhardt [Wed, 14 Apr 2021 02:33:24 +0000 (04:33 +0200)]
libavresample: Remove deprecated library

Deprecated in c29038f3041a4080342b2e333c1967d136749c0f.
The resample filter based upon this library has been removed as well.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavutil/cpu: Remove deprecated functions
Andreas Rheinhardt [Wed, 14 Apr 2021 13:02:24 +0000 (15:02 +0200)]
avutil/cpu: Remove deprecated functions

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavutil/buffer: Switch AVBuffer API to size_t
Andreas Rheinhardt [Wed, 14 Apr 2021 12:59:32 +0000 (14:59 +0200)]
avutil/buffer: Switch AVBuffer API to size_t

Announced in 14040a1d913794d9a3fd6406a6d8c2f0e37e0062.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavutil/pixdesc: Remove deprecated AV_PIX_FMT_FLAG_PSEUDOPAL
Andreas Rheinhardt [Tue, 13 Apr 2021 23:46:26 +0000 (01:46 +0200)]
avutil/pixdesc: Remove deprecated AV_PIX_FMT_FLAG_PSEUDOPAL

Deprecated in d6fc031caf64eed921bbdef86d79d56bfc2633b0.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavutil/frame: Remove deprecated getters and setters
Andreas Rheinhardt [Sat, 6 Mar 2021 21:13:09 +0000 (22:13 +0100)]
avutil/frame: Remove deprecated getters and setters

Deprecated in 7df37dd319f2d9d3e1becd5d433884e3ccfa1ee2.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavutil: Switch crypto APIs to size_t
Andreas Rheinhardt [Sat, 6 Mar 2021 20:56:20 +0000 (21:56 +0100)]
avutil: Switch crypto APIs to size_t

Announced in e435beb1ea5380a90774dbf51fdc8c941e486551.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavutil/frame: Remove deprecated AVFrame.pkt_pts field
Andreas Rheinhardt [Sat, 6 Mar 2021 19:40:41 +0000 (20:40 +0100)]
avutil/frame: Remove deprecated AVFrame.pkt_pts field

Deprecated in 32c8359093d1ff4f45ed19518b449b3ac3769d27.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavutil/frame: Remove deprecated AVFrame.error
Andreas Rheinhardt [Sat, 6 Mar 2021 19:22:14 +0000 (20:22 +0100)]
avutil/frame: Remove deprecated AVFrame.error

Deprecated in 1aa24df74c052a73175c43e57d35b4835e537ec8.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavutil/pixdesc: Remove deprecated off-by-one fields from pix fmt descs
Andreas Rheinhardt [Sat, 6 Mar 2021 19:01:53 +0000 (20:01 +0100)]
avutil/pixdesc: Remove deprecated off-by-one fields from pix fmt descs

Deprecated in 2268db2cd052674fde55c7d48b7a5098ce89b4ba.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavutil/frame: Remove AVFrame QP table API
Andreas Rheinhardt [Sat, 6 Mar 2021 18:33:32 +0000 (19:33 +0100)]
avutil/frame: Remove AVFrame QP table API

Originally deprecated in 1296b1f6c0631ab79464e22d48a6a1548450b943;
scheduled again for removal in a9915268327b097bba84a07f68968d8c07f4b549.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavutil/pixfmt: Remove deprecated VAAPI pixel formats
Andreas Rheinhardt [Sat, 6 Mar 2021 18:23:55 +0000 (19:23 +0100)]
avutil/pixfmt: Remove deprecated VAAPI pixel formats

Deprecated in 9f8e57efe4400ca86352277873792792279c3b15.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove deprecated old encode/decode APIs
Andreas Rheinhardt [Wed, 14 Apr 2021 02:09:53 +0000 (04:09 +0200)]
avcodec: Remove deprecated old encode/decode APIs

Deprecated in commits 7fc329e2dd6226dfecaa4a1d7adf353bf2773726
and 31f6a4b4b83aca1d73f3cfc99ce2b39331970bf3.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove deprecated AVCodecContext.coded_frame
Andreas Rheinhardt [Wed, 14 Apr 2021 01:36:13 +0000 (03:36 +0200)]
avcodec: Remove deprecated AVCodecContext.coded_frame

Deprecated in 40cf1bbacc6220a0aa6bed5c331871d43f9ce370.
(The currently disabled filter vf_mcdeint and vf_uspp were users of
this field; they have not been changed, so that whoever wants to fix
them can see the state of these filters when they were disabled.)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoDisable vf_uspp/mcdeint.
Anton Khirnov [Mon, 5 Apr 2021 11:09:43 +0000 (13:09 +0200)]
Disable vf_uspp/mcdeint.

These filters depend on avcodec APIs that are to be removed. Some people
have expressed potential interest in updating these filters, so they are
merely disabled for now instead of being removed.

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agolibswscale: Remove unused deprecated functions, make used ones static
Andreas Rheinhardt [Wed, 14 Apr 2021 12:14:53 +0000 (14:14 +0200)]
libswscale: Remove unused deprecated functions, make used ones static

Deprecated in 3b905b9fe611efb3282aa4c5c659e1870d91a83b.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavfilter/Makefile: Don't compile transform.c unconditionally
Andreas Rheinhardt [Wed, 24 Feb 2021 14:20:39 +0000 (15:20 +0100)]
avfilter/Makefile: Don't compile transform.c unconditionally

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavfilter/transform: Stop exporting internal functions
Andreas Rheinhardt [Wed, 24 Feb 2021 13:52:04 +0000 (14:52 +0100)]
avfilter/transform: Stop exporting internal functions

avfilter_transform, avfilter_(add|sub|mult)_matrix are not part of the
public API (transform.h is not a public header), yet they are currently
exported because of their name. This commit changes this:
avfilter_transform is renamed to ff_affine_transform; the other
functions are just removed as they have never been used at all.

Found-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavfilter/formats: Remove avfilter_make_format64_list()
Andreas Rheinhardt [Sat, 6 Mar 2021 18:06:56 +0000 (19:06 +0100)]
avfilter/formats: Remove avfilter_make_format64_list()

The API it is part of has been made private long ago (see commit
b74a1da49db5ebed51aceae6cacc2329288a92c1).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavfilter/avfilter: Remove deprecated avfilter_link_set_closed()
Andreas Rheinhardt [Sat, 6 Mar 2021 17:54:45 +0000 (18:54 +0100)]
avfilter/avfilter: Remove deprecated avfilter_link_set_closed()

Deprecated in 39a09e995d32d16e4f8c87a6ff5273cb9d98146e.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavfilter: Remove avfilter_next/avfilter_register API
Andreas Rheinhardt [Sat, 6 Mar 2021 17:44:21 +0000 (18:44 +0100)]
avfilter: Remove avfilter_next/avfilter_register API

Deprecated in 8f1382f80e0d4184c54c14afdda6482f050fbba7.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavfilter: Remove deprecated avfilter_link_get_channels
Andreas Rheinhardt [Sat, 6 Mar 2021 17:08:50 +0000 (18:08 +0100)]
avfilter: Remove deprecated avfilter_link_get_channels

Deprecated in b2c42fc6dc3502a8b6cae441c54d898972a51cff.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavfilter: Remove deprecated resample_lavr_opts
Andreas Rheinhardt [Sat, 6 Mar 2021 16:52:24 +0000 (17:52 +0100)]
avfilter: Remove deprecated resample_lavr_opts

Deprecated in 3796fb2692f87d0000fc0aa4572ac025a6469c2b.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavfilter/avfilter: Remove compatibility code for old filter options
Andreas Rheinhardt [Sat, 6 Mar 2021 16:39:17 +0000 (17:39 +0100)]
avfilter/avfilter: Remove compatibility code for old filter options

Added in ad7d972e08dddb1788ac6a434d1be314febcb09d; the old syntax has
been deprecated in b439c992c23f3e0f3832fffd2a34a664b236c525.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat: Switch AVChapter.id to 64bits
Andreas Rheinhardt [Tue, 13 Apr 2021 22:35:37 +0000 (00:35 +0200)]
avformat: Switch AVChapter.id to 64bits

Announced in e318438f2f30525d8baca2b5683aa9898d0c56f7.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat: Remove deprecated av_demuxer_open()
Andreas Rheinhardt [Tue, 13 Apr 2021 22:29:37 +0000 (00:29 +0200)]
avformat: Remove deprecated av_demuxer_open()

Deprecate in e37f161e66e042d6c2c7470c4d9881df9427fc4a.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat: Remove deprecated AVFMT_FLAG_MP4A_LATM flag, latm option
Andreas Rheinhardt [Sat, 6 Mar 2021 16:18:46 +0000 (17:18 +0100)]
avformat: Remove deprecated AVFMT_FLAG_MP4A_LATM flag, latm option

Deprecated in 67747c89ad4d3bfb4381c3d274603a4f0da773d8.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/dashenc: Remove deprecated min_seg_duration option
Andreas Rheinhardt [Sat, 6 Mar 2021 16:14:23 +0000 (17:14 +0100)]
avformat/dashenc: Remove deprecated min_seg_duration option

Deprecated in 01ba52852d2ada3c79fe02a7de5bc1fdc27d56e8.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/rtsp: Remove deprecated old options, rename stimeout->timeout
Andreas Rheinhardt [Sat, 6 Mar 2021 15:55:37 +0000 (16:55 +0100)]
avformat/rtsp: Remove deprecated old options, rename stimeout->timeout

Deprecated in ff46124b0df17a1d35249e09ae8eae9a61f16e04.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/aviobuf: End grace period of allowing 0 from read_packet
Andreas Rheinhardt [Sat, 6 Mar 2021 15:51:13 +0000 (16:51 +0100)]
avformat/aviobuf: End grace period of allowing 0 from read_packet

See a606f27f4c610708fa96e35eed7b7537d3d8f712.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/mov, movenc: Stop exporting rotation via metadata
Andreas Rheinhardt [Sat, 6 Mar 2021 15:33:48 +0000 (16:33 +0100)]
avformat/mov, movenc: Stop exporting rotation via metadata

Deprecated in ddef3d902f0e4cbd6be6b3e5df7ec158ce51488b.

(The reference file of the mov-zombie test needed to be updated, because
a rotate metadata tag is no longer exported; the side-data is of course
still present.)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat: Remove remnants of side data merging
Andreas Rheinhardt [Sat, 6 Mar 2021 14:59:06 +0000 (15:59 +0100)]
avformat: Remove remnants of side data merging

Deprecated in d682ae70b4b3a53fb73ec30281f9f4cfbc531edd,
ineffective since ca4df37f06f8a47651c67693b4851ed8d7e3ef74.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/hlsenc: Remove deprecated localtime options
Andreas Rheinhardt [Sat, 6 Mar 2021 14:57:03 +0000 (15:57 +0100)]
avformat/hlsenc: Remove deprecated localtime options

Deprecated in fbd8746efabe441469eb410d2ffa6af64987ca80.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/hlsenc: Remove deprecated wrap option
Andreas Rheinhardt [Sat, 6 Mar 2021 14:45:17 +0000 (15:45 +0100)]
avformat/hlsenc: Remove deprecated wrap option

Deprecated in d96ebc5ef88024869de06bcf92b2ad99b01d47e3.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/http: Remove deprecated "user-agent" option
Andreas Rheinhardt [Sat, 6 Mar 2021 13:11:56 +0000 (14:11 +0100)]
avformat/http: Remove deprecated "user-agent" option

Deprecated in 27714b462d1bff9e9b40fbdabb39f58e79032b81.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/avformat: Remove outdated private fields
Andreas Rheinhardt [Fri, 26 Feb 2021 10:35:46 +0000 (11:35 +0100)]
avformat/avformat: Remove outdated private fields

Affected function pointers (always NULL) in AVInputFormat,
AVOutputFormat as well as private fields of AVStream.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat: Remove deprecated filename field from AVFormatContext
Andreas Rheinhardt [Fri, 26 Feb 2021 10:33:09 +0000 (11:33 +0100)]
avformat: Remove deprecated filename field from AVFormatContext

Deprecated in fa8308d3d4f27d6fb38ac2069887a7b259f1c6ab.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat: Remove getters and setters
Andreas Rheinhardt [Thu, 25 Feb 2021 13:49:18 +0000 (14:49 +0100)]
avformat: Remove getters and setters

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat: Remove deprecated old open callbacks
Andreas Rheinhardt [Thu, 25 Feb 2021 13:45:28 +0000 (14:45 +0100)]
avformat: Remove deprecated old open callbacks

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat: Remove FFserver leftovers
Andreas Rheinhardt [Thu, 25 Feb 2021 13:42:59 +0000 (14:42 +0100)]
avformat: Remove FFserver leftovers

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat: Constify the API wrt AV(In|Out)putFormat
Andreas Rheinhardt [Thu, 25 Feb 2021 02:11:32 +0000 (03:11 +0100)]
avformat: Constify the API wrt AV(In|Out)putFormat

Also constify AVProbeData.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Switch AVCPBProperties to 64bits
Andreas Rheinhardt [Fri, 26 Feb 2021 10:19:02 +0000 (11:19 +0100)]
avcodec: Switch AVCPBProperties to 64bits

Announced in 2e8b0446c6798947dac77fee4a06f9c4e8131ab5.
Two FATE-tests needed to be updated because the checksums of
side data containing an AVCPBProperties struct changed.

buffer_size has also been switched to 64bits because it is a bitsize.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/parser: Remove deprecated av_parser_change
Andreas Rheinhardt [Fri, 26 Feb 2021 09:42:02 +0000 (10:42 +0100)]
avcodec/parser: Remove deprecated av_parser_change

Deprecated in 9a07c1332cfe092b57b5758f22b686ca58806c60.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/mpegvideo: Remove deprecated rc_strategy option
Andreas Rheinhardt [Fri, 26 Feb 2021 09:02:28 +0000 (10:02 +0100)]
avcodec/mpegvideo: Remove deprecated rc_strategy option

Deprecated in d05c3b9ceeb9d00d4500c376448230e45f6ab108.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/vaapi: Remove old and deprecated VAAPI context and header
Andreas Rheinhardt [Fri, 26 Feb 2021 08:37:37 +0000 (09:37 +0100)]
avcodec/vaapi: Remove old and deprecated VAAPI context and header

Deprecated in 851960f6f8cf1f946fe42fa36cf6598fac68072c.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove deprecated old aliases for NVENC encoders
Andreas Rheinhardt [Fri, 26 Feb 2021 07:41:10 +0000 (08:41 +0100)]
avcodec: Remove deprecated old aliases for NVENC encoders

Deprecated in 888a5c794778a2f2aad22e9b4a3952dff92b11fa.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove deprecated VBV delay field
Andreas Rheinhardt [Fri, 26 Feb 2021 07:22:35 +0000 (08:22 +0100)]
avcodec: Remove deprecated VBV delay field

Deprecated in 2507b5dd674834be7261772996f47ae3b95cca69.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/imgconvert: Remove deprecated parts of pixel format API
Andreas Rheinhardt [Fri, 26 Feb 2021 07:19:06 +0000 (08:19 +0100)]
avcodec/imgconvert: Remove deprecated parts of pixel format API

Deprecated in 617e866e25b72fa5d9f9d6bbcbd7e4bd69e63a54 and
2a54ae9df8cbc1717b3929222ac75f384e2ff240.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove deprecated AVPicture API
Andreas Rheinhardt [Fri, 26 Feb 2021 05:19:42 +0000 (06:19 +0100)]
avcodec: Remove deprecated AVPicture API

Deprecated in a17a7661906ba295d67afd80ac0770422e1b02b3.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/vdpau: Remove deprecated av_vdpau_get_profile
Andreas Rheinhardt [Fri, 26 Feb 2021 04:52:36 +0000 (05:52 +0100)]
avcodec/vdpau: Remove deprecated av_vdpau_get_profile

Deprecated in b10b6ac7a902f28e09e37a29c392e2f0c19e9526.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/options: Remove deprecated avcodec_copy_context
Andreas Rheinhardt [Fri, 26 Feb 2021 02:56:33 +0000 (03:56 +0100)]
avcodec/options: Remove deprecated avcodec_copy_context

Deprecated in 5f30ac27795f9f98043e8582ccaad8813104adc4.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove deprecated avcodec_get_context_defaults3
Andreas Rheinhardt [Thu, 25 Feb 2021 19:37:24 +0000 (20:37 +0100)]
avcodec: Remove deprecated avcodec_get_context_defaults3

Deprecated in 04fc8e24a091ed1d77d7a3c0cbcfe60baec19a9f.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/(movtext|srt|ttml|webvtt)enc: Reindent after previous commit
Andreas Rheinhardt [Thu, 25 Feb 2021 19:33:44 +0000 (20:33 +0100)]
avcodec/(movtext|srt|ttml|webvtt)enc: Reindent after previous commit

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove deprecated ASS with inline timing
Andreas Rheinhardt [Thu, 25 Feb 2021 19:30:58 +0000 (20:30 +0100)]
avcodec: Remove deprecated ASS with inline timing

Deprecated in 22ebbda637257a432c99330ca4c6024665418f0e.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/mpegvideo_enc: Remove deprecated RTP-callback
Andreas Rheinhardt [Thu, 25 Feb 2021 19:15:20 +0000 (20:15 +0100)]
avcodec/mpegvideo_enc: Remove deprecated RTP-callback

Deprecated in 462a54e2291e1fa18e1f1254d09739dfbb795617.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/codec2utils: Remove legacy avpriv functions
Andreas Rheinhardt [Thu, 25 Feb 2021 19:07:50 +0000 (20:07 +0100)]
avcodec/codec2utils: Remove legacy avpriv functions

Unused since 37d742b607d47122d23d548ffd7ad9b09cbc5298.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/mpeg4audio: Remove avpriv_mpeg4audio_get_config
Andreas Rheinhardt [Thu, 25 Feb 2021 18:59:35 +0000 (19:59 +0100)]
avcodec/mpeg4audio: Remove avpriv_mpeg4audio_get_config

Superseded by avpriv_mpeg4audio_get_config2.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/bitstream: Remove avpriv PutBits API functions
Andreas Rheinhardt [Thu, 25 Feb 2021 18:54:07 +0000 (19:54 +0100)]
avcodec/bitstream: Remove avpriv PutBits API functions

Scheduled for removal in 717503f7166d7032e32b935f2819d450524125d1.
Also remove PutBitContext.size_in_bits which has been scheduled
for removal in e7cbbd90267de2a0ad1b5fa8ccb29ab7bf8a26b8.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove deprecated avcodec_get_chroma_sub_sample
Andreas Rheinhardt [Thu, 25 Feb 2021 18:45:33 +0000 (19:45 +0100)]
avcodec: Remove deprecated avcodec_get_chroma_sub_sample

Effectively deprecated in 2c800eb7375c65ffd56164b03bb035bdb3f1e172.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove remnants of user-visiable HW acceleration API
Andreas Rheinhardt [Thu, 25 Feb 2021 18:39:58 +0000 (19:39 +0100)]
avcodec: Remove remnants of user-visiable HW acceleration API

Disabled and deprecated in 3536a3efb9fde88d34d526a51b1080247326cd6e.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove lock manager API
Andreas Rheinhardt [Thu, 25 Feb 2021 18:37:16 +0000 (19:37 +0100)]
avcodec: Remove lock manager API

Deprecated in a04c2c707de2ce850f79870e84ac9d7ec7aa9143.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove deprecated av_codec_get_tag_string
Andreas Rheinhardt [Thu, 25 Feb 2021 18:34:56 +0000 (19:34 +0100)]
avcodec: Remove deprecated av_codec_get_tag_string

Deprecated in f156d35321bb600b2309b78185d600b2fa64d84a.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove unneeded getters and setters
Andreas Rheinhardt [Thu, 25 Feb 2021 18:29:46 +0000 (19:29 +0100)]
avcodec: Remove unneeded getters and setters

Deprecated in c4131a0613c4b2c30c01b2550b41068815d27799.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove private options from AVCodecContext
Andreas Rheinhardt [Thu, 25 Feb 2021 18:20:01 +0000 (19:20 +0100)]
avcodec: Remove private options from AVCodecContext

Several options that were too codec-specific were deprecated between
0e6c8532215790bbe560a9eea4f3cc82bb55cf92 and
0e9c4fe254073b209970df3e3cb84531bc388e99.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove deprecated API to split/merge side-data
Andreas Rheinhardt [Thu, 25 Feb 2021 17:57:27 +0000 (18:57 +0100)]
avcodec: Remove deprecated API to split/merge side-data

Deprecated in d682ae70b4b3a53fb73ec30281f9f4cfbc531edd.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove deprecated coder type options
Andreas Rheinhardt [Thu, 25 Feb 2021 17:54:02 +0000 (18:54 +0100)]
avcodec: Remove deprecated coder type options

Deprecated in be00ec832c519427cd92218abac77dafdc1d5487.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove deprecated stat-bits fields
Andreas Rheinhardt [Thu, 25 Feb 2021 17:43:15 +0000 (18:43 +0100)]
avcodec: Remove deprecated stat-bits fields

Deprecated in 16216b713f9a21865cc07993961cf5d0ece24916.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove deprecated AVPacket API
Andreas Rheinhardt [Thu, 25 Feb 2021 17:14:11 +0000 (18:14 +0100)]
avcodec: Remove deprecated AVPacket API

Deprecated in ce70f28a1732c74a9cd7fec2d56178750bd6e457.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec, avformat: Remove AVPacket.convergence_duration
Andreas Rheinhardt [Thu, 25 Feb 2021 17:12:11 +0000 (18:12 +0100)]
avcodec, avformat: Remove AVPacket.convergence_duration

Deprecated in 948f3c19a8bd069768ca411212aaf8c1ed96b10d.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove sidedata-only-packet cruft
Andreas Rheinhardt [Thu, 25 Feb 2021 17:01:14 +0000 (18:01 +0100)]
avcodec: Remove sidedata-only-packet cruft

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec, avformat: Remove old BSF API
Andreas Rheinhardt [Thu, 25 Feb 2021 16:49:56 +0000 (17:49 +0100)]
avcodec, avformat: Remove old BSF API

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat: Remove next API for AV(In|Out)putFormat
Andreas Rheinhardt [Thu, 25 Feb 2021 13:22:30 +0000 (14:22 +0100)]
avformat: Remove next API for AV(In|Out)putFormat

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec: Remove AVCodec, AVParser and AVBitStreamFilter next API
Andreas Rheinhardt [Thu, 25 Feb 2021 13:02:44 +0000 (14:02 +0100)]
avcodec: Remove AVCodec, AVParser and AVBitStreamFilter next API

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/dtsenc: reindent
Gyan Doshi [Tue, 27 Apr 2021 03:51:43 +0000 (09:21 +0530)]
avformat/dtsenc: reindent

3 years agoavformat/adtsenc: clarify option help
Gyan Doshi [Mon, 26 Apr 2021 11:20:03 +0000 (16:50 +0530)]
avformat/adtsenc: clarify option help

Also remove unnecessary unit as option does not accept any constants.

3 years agodoc/filters: correct http link
Limin Wang [Mon, 26 Apr 2021 10:48:51 +0000 (18:48 +0800)]
doc/filters: correct http link

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
3 years agolavfi/dnn/queue.h: Add Documentation to Queue
Shubhanshu Saxena [Mon, 26 Apr 2021 07:54:09 +0000 (13:24 +0530)]
lavfi/dnn/queue.h: Add Documentation to Queue

Documentation for Queue

Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
3 years agolavfi/dnn/safe_queue.h: Add Documentation to SafeQueue
Shubhanshu Saxena [Mon, 26 Apr 2021 07:46:50 +0000 (13:16 +0530)]
lavfi/dnn/safe_queue.h: Add Documentation to SafeQueue

Documentation for SafeQueue

Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
3 years agoavcodec/msmpeg4enc: Reindent after the last commit
Andreas Rheinhardt [Thu, 10 Dec 2020 06:33:46 +0000 (07:33 +0100)]
avcodec/msmpeg4enc: Reindent after the last commit

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
3 years agoavcodec/msmpeg4enc: Make msmpeg4 encoders init-threadsafe
Andreas Rheinhardt [Thu, 10 Dec 2020 06:26:31 +0000 (07:26 +0100)]
avcodec/msmpeg4enc: Make msmpeg4 encoders init-threadsafe

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
3 years agoavcodec/msmpeg4: Factor out common RLTable initialization code
Andreas Rheinhardt [Thu, 10 Dec 2020 05:39:41 +0000 (06:39 +0100)]
avcodec/msmpeg4: Factor out common RLTable initialization code

Up until now, both the msmpeg4 decoders and encoders initialized several
RLTables common to them (the decoders also initialized the VLCs of these
RLTables). This is an obstacle to making these codecs init-threadsafe.
So move this initialization to ff_msmpeg4_common_init() that already
contains this initialization code. This allows to reuse the AVOnce used
for initializing ff_v2_dc_lum/chroma_table which automatically makes
initializing these RLTables thread-safe.

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
3 years agoavcodec/msmpeg4: Reindentation
Andreas Rheinhardt [Thu, 10 Dec 2020 04:42:35 +0000 (05:42 +0100)]
avcodec/msmpeg4: Reindentation

Forgotten in/after f5957f3fe2b8dfda13a9750acc3e3a03cd5d39c9.

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
3 years agoavcodec/msmpeg4: Make ff_msmpeg4_common_init() thread-safe
Andreas Rheinhardt [Thu, 10 Dec 2020 04:37:54 +0000 (05:37 +0100)]
avcodec/msmpeg4: Make ff_msmpeg4_common_init() thread-safe

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
3 years agoavcodec/mpeg4videoenc: Make encoder init-threadsafe
Andreas Rheinhardt [Thu, 10 Dec 2020 04:00:40 +0000 (05:00 +0100)]
avcodec/mpeg4videoenc: Make encoder init-threadsafe

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
3 years agoavcodec/mpeg4video: Make initializing RLTable thread-safe
Andreas Rheinhardt [Thu, 10 Dec 2020 03:32:17 +0000 (04:32 +0100)]
avcodec/mpeg4video: Make initializing RLTable thread-safe

Up until now the RLTable ff_mpeg4_rl_intra was initialized by both mpeg4
decoder and encoder (except the VLCs that are only used by the decoder).
This is an obstacle to making these codecs init-threadsafe, so move
initializing this to a single function that is guarded by a dedicated
AVOnce.

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
3 years agoavcodec/ituh263enc: Make static initializations thread-safe
Andreas Rheinhardt [Wed, 2 Dec 2020 00:58:09 +0000 (01:58 +0100)]
avcodec/ituh263enc: Make static initializations thread-safe

This already makes several encoders (namely FLV, H.263, H.263+ and
RealVideo 1.0 and 2.0 and SVQ1) that use this init-threadsafe.

It also makes the Snow encoder init-threadsafe; it was already marked
as such since commit d49210788b0836d56dd872d517fe73f83b080101, because
it was thought to be harmless if one and the same object was
initialized by multiple threads at the same time.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
3 years agoavcodec/encode: Zero padding in ff_get_encode_buffer()
Andreas Rheinhardt [Mon, 26 Apr 2021 18:47:03 +0000 (20:47 +0200)]
avcodec/encode: Zero padding in ff_get_encode_buffer()

The documentation of the get_encode_buffer() callback does not require
to zero the padding; therefore we do it in ff_get_encode_buffer().
This also constitutes an implicit check for whether the buffer is
actually allocated with padding.

The memset in avcodec_default_get_encode_buffer() is now redundant and
has been removed.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years agoavcodec/svq3: Free array of frames in a loop
Andreas Rheinhardt [Thu, 15 Apr 2021 15:17:21 +0000 (17:17 +0200)]
avcodec/svq3: Free array of frames in a loop

Avoids code duplication

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years agoavcodec/svq3: Remove unused function parameter
Andreas Rheinhardt [Thu, 15 Apr 2021 14:36:15 +0000 (16:36 +0200)]
avcodec/svq3: Remove unused function parameter

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years agoavcodec/ivi: Fix indentation
Andreas Rheinhardt [Thu, 15 Apr 2021 14:20:50 +0000 (16:20 +0200)]
avcodec/ivi: Fix indentation

Also improve readability by keeping a pointer to the IVIBandDesc that is
currently freed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years agoavcodec/vc2enc: Actually zero padding
Andreas Rheinhardt [Mon, 26 Apr 2021 16:16:24 +0000 (18:16 +0200)]
avcodec/vc2enc: Actually zero padding

This encoder sets the min_size in ff_alloc_packet2(), so it can not rely
on av_packet_make_refcounted() to zero the padding.

Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years agoavformat/westwood_audenc: Remove unused variable
Andreas Rheinhardt [Mon, 26 Apr 2021 12:49:35 +0000 (14:49 +0200)]
avformat/westwood_audenc: Remove unused variable

Reviewed-by: Zane van Iperen <zane@zanevaniperen.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>