[FFmpeg-devel] [PATCH] ffprobe: fix XML rendering, review XML layout

Michael Niedermayer michael at niedermayer.cc
Sun Oct 15 20:15:16 EEST 2023


On Sat, Oct 14, 2023 at 09:50:24PM +0200, Stefano Sabatini wrote:
> On date Saturday 2023-10-14 19:24:28 +0200, Stefano Sabatini wrote:
> > Fix rendering of int values within a side data element, which was
> > broken since commit d2d3a83ad93, where the side data element was
> > correctly marked as a variable fields element. Logic to render a
> > string variable was implemented already, but it was not implemented
> > for the int fields path, which was enabled by that commit.
> [...]
> 
> V2 with schema fixes.
> 
> I'd like to include the fixed version with 6.1 (will probably push in
> a few days if I see no comments).

>  Changelog                  |    2 +
>  doc/ffprobe.xsd            |   31 +++++++++++++++++++++-------
>  fftools/ffprobe.c          |   49 +++++++++++++++++++++++++++++++++------------
>  tests/ref/fate/ffprobe_xml |   26 +++++++++++++++--------

This needs to update fate references

one example:
diff --git a/tests/ref/fate/flv-demux b/tests/ref/fate/flv-demux
index 0a00276276..b40ca639a2 100644
--- a/tests/ref/fate/flv-demux
+++ b/tests/ref/fate/flv-demux
@@ -1,5 +1,5 @@
-packet|codec_type=audio|stream_index=1|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=46|duration_time=0.046000|size=9|pos=3241|flags=K__|data_hash=CRC32:bbb61b93|side_data/new_extradata:side_data_type=New Extradata
-packet|codec_type=video|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=33|duration_time=0.033000|size=135|pos=3267|flags=K__|data_hash=CRC32:3f2ccc9e|side_data/new_extradata:side_data_type=New Extradata
+packet|codec_type=audio|stream_index=1|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=46|duration_time=0.046000|size=9|pos=3241|flags=K__|data_hash=CRC32:bbb61b93|side_datum/new_extradata:side_data_type=New Extradata
+packet|codec_type=video|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=33|duration_time=0.033000|size=135|pos=3267|flags=K__|data_hash=CRC32:3f2ccc9e|side_datum/new_extradata:side_data_type=New Extradata
 packet|codec_type=video|stream_index=0|pts=33|pts_time=0.033000|dts=33|dts_time=0.033000|duration=33|duration_time=0.033000|size=92|pos=3422|flags=___|data_hash=CRC32:c14e72b2
 packet|codec_type=audio|stream_index=1|pts=46|pts_time=0.046000|dts=46|dts_time=0.046000|duration=46|duration_time=0.046000|size=9|pos=3534|flags=K__|data_hash=CRC32:bbb61b93
 packet|codec_type=video|stream_index=0|pts=67|pts_time=0.067000|dts=67|dts_time=0.067000|duration=33|duration_time=0.033000|size=14|pos=3560|flags=___|data_hash=CRC32:0b3c3ab4

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Nations do behave wisely once they have exhausted all other alternatives. 
-- Abba Eban
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20231015/637a18a9/attachment.sig>


More information about the ffmpeg-devel mailing list