Opened 5 weeks ago

#7217 new defect

ffprobe produces wrong XML; "data_hash" attribute sometimes in text

Reported by: carlreinke Owned by:
Priority: normal Component: ffprobe
Version: 3.2.4 Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

The "data_hash" attribute is sometimes in the text instead of in the tag.

How to reproduce:

$ ffprobe -v 0 -print_format xml=xsd_strict=1 -show_packets -show_data_hash sha160 -noshow_private_data -read_intervals %+#1 kahvi048_pinza-thickline.ogg
<?xml version="1.0" encoding="UTF-8"?>
<ffprobe:ffprobe xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ffprobe='http://www.ffmpeg.org/schema/ffprobe' xsi:schemaLocation='http://www.ffmpeg.org/schema/ffprobe ffprobe.xsd'>
    <packets>
        <packet codec_type="audio" stream_index="0" pts="-128" pts_time="-0.002902" dts="-128" dts_time="-0.002902" duration="128" duration_time="0.002902" size="60" pos="4315" flags="K_">
            <side_data_list>
                <side_data side_data_type="Metadata Update"/>
            </side_data_list>
 data_hash="SHA160:5e0e1c526cd631e016e378bc99302e63ea40e381"        </packet>
    </packets>
</ffprobe:ffprobe>

File used is available here.

Change History (0)

Note: See TracTickets for help on using tickets.