1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-03 14:32:16 +02:00
Derek Buitenhuis e6754d2ad2 ffprobe: Rename Audio Service Type 'type' field to 'service_type'
677a030b26045acb50353d7954ae984ceefcd807 introduced more printable
side data types in ffprobe, however the Audio Service Type side data
'type' field that was introduced aliases an existing field of the same
name within the side data array, which can lead to JSON output like:

    "side_data_list": [
        {
            "side_data_type": "Audio Service Type",
            "type": 0
        },
        {
            "side_data_type": "Stereo 3D",
            "type": "side by side",
            "inverted": 1
        }
    ]

This, while technically valid JSON, is considered bad practice, since it
forces all downstream users to manually parse it and check all types;
it makes simple deserialization impossible. Worse, in som loosely
type languages, it can lead to silent bugs if exising code assumed
it was a different type.

As such, rename this second "type" field to "service_type".

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2021-08-06 15:48:31 +01:00
..
aic
amv
ast
2021-01-01 14:33:12 +01:00
2021-01-01 14:33:12 +01:00
bfi
caf
crc
dpx
jv
lfg
2021-02-24 17:16:46 +01:00
m4v
md5
mkv
2020-12-10 09:53:52 +01:00
mtv
opt
ptx
rl2
sha
smc
2020-12-10 10:07:09 +01:00
tea
thp
2021-02-05 09:27:06 +08:00
tmv
2021-05-09 11:07:20 +02:00
vb
vp4
vp5
vp7
w64
yop