mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
e6754d2ad2
677a030b26
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>
11 lines
160 B
Plaintext
11 lines
160 B
Plaintext
[STREAM]
|
|
codec_name=ac3
|
|
sample_fmt=fltp
|
|
channels=6
|
|
channel_layout=5.1(side)
|
|
[SIDE_DATA]
|
|
side_data_type=Audio Service Type
|
|
service_type=0
|
|
[/SIDE_DATA]
|
|
[/STREAM]
|