[FFmpeg-devel] ffprobe can produce invalid XML

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Apr 3 15:45:50 CEST 2012


Ian Ashley <iashley <at> opentext.com> writes:

> The problem can be reproduced on the latest git head using the 
> attached movie and the command 
> ffprobe -print_format xml -show_streams -loglevel 0 cnet.mp4
> [ alas the movie is too big to post to the mailing list and 
> I don't have a smaller sample that causes the problem, do 
> you have an FTP site where I can post the movie? ]

Please consider reading http://ffmpeg.org/bugreports.html

> The output is attached. The invalid character is before 
> the V on the line
> <tag key="handler_name" value=" VideoHandler"/>
> 
> A patch file produced using diff -u old/ffprobe.c 
> new/ffprobe.c is attached. The replaces the
> xml_escape_str function by one that replaces any 
> invalid UTF-8 characters by the inverted question mark.

Tabs cannot be committed to the FFmpeg repository, please 
consider using tools/patcheck.

Carl Eugen



More information about the ffmpeg-devel mailing list