[FFmpeg-devel] [PATCH 3/4] ffprobe: stop printing deprecated fields

James Almer jamrial at gmail.com
Thu Jan 28 01:05:49 EET 2021


On 1/27/2021 7:42 PM, Michael Niedermayer wrote:
> On Tue, Jan 26, 2021 at 06:01:01PM +0100, Anton Khirnov wrote:
>> Also drop the sections guarded by #if FF_API*
>> These macros are private and should not be used by external callers.
>> ---
>>   fftools/ffprobe.c                             |  34 --
>>   .../ref/fate/concat-demuxer-extended-lavf-mxf |   2 +-
>>   .../fate/concat-demuxer-extended-lavf-mxf_d10 |   2 +-
>>   .../ref/fate/concat-demuxer-simple1-lavf-mxf  | 248 +++++-----
>>   .../fate/concat-demuxer-simple1-lavf-mxf_d10  | 144 +++---
>>   tests/ref/fate/concat-demuxer-simple2-lavf-ts | 302 ++++++------
>>   tests/ref/fate/ffprobe_compact                |  34 +-
>>   tests/ref/fate/ffprobe_csv                    |  34 +-
>>   tests/ref/fate/ffprobe_default                |  42 --
>>   tests/ref/fate/ffprobe_flat                   |  42 --
>>   tests/ref/fate/ffprobe_ini                    |  42 --
>>   tests/ref/fate/ffprobe_json                   |   9 -
>>   tests/ref/fate/ffprobe_xml                    |   6 +-
>>   tests/ref/fate/flcl1905                       |  34 +-
>>   ...hapqa-extract-nosnappy-to-hapalphaonly-mov |   8 -
>>   .../fate/hapqa-extract-nosnappy-to-hapq-mov   |   8 -
>>   tests/ref/fate/hls-fmp4_ac3                   |   1 -
>>   tests/ref/fate/mov-aac-2048-priming           | 434 +++++++++---------
>>   tests/ref/fate/mov-init-nonkeyframe           | 240 +++++-----
>>   tests/ref/fate/mov-zombie                     | 134 +++---
>>   tests/ref/fate/mxf-probe-applehdr10           |  10 -
>>   tests/ref/fate/mxf-probe-d10                  |   8 -
>>   tests/ref/fate/mxf-probe-dnxhd                |   9 -
>>   tests/ref/fate/mxf-probe-dv25                 |  10 -
>>   24 files changed, 807 insertions(+), 1030 deletions(-)
> 
> This decreases the amount of fields regression tested.
> Iam not sure if thats a good idea. Generally more testing is better

These are all deprecated fields, so they will be gone with the bump. 
This patch is doing what you mentioned was the correct approach 
regarding deprecation removals, which was removing FF_API defines 
individually or in small batches per patch, instead of bumping 
LIB*_VERSION_MAJOR and disabling them all in one go.

If you prefer, what could be done is wait until ffmpeg 4.4 is branched 
out before applying this patch (and probably also 4/4), which i assume 
was planned to happen before the bump so distros can get all of last 
year's development in their current releases (mainly LTSs) simply by 
dropping in the new libraries.


More information about the ffmpeg-devel mailing list