[FFmpeg-trac] #921(FFprobe:open): ffprobe may not correctly format json filesizes (patch attached)

FFmpeg trac at avcodec.org
Wed Jan 18 01:55:05 CET 2012


#921: ffprobe may not correctly format json filesizes (patch attached)
---------------------------------------+-----------------------------------
             Reporter:  elkq           |                    Owner:  stefano
                 Type:  defect         |                   Status:  open
             Priority:  normal         |                Component:  FFprobe
              Version:  git-master     |               Resolution:
             Keywords:  json filesize  |               Blocked By:
             Blocking:                 |  Reproduced by developer:  0
Analyzed by developer:  1              |
---------------------------------------+-----------------------------------

Comment (by saste):

 Replying to [comment:3 elkq]:
 [...]
 > Unfortunately we missed a case, the -unit option, i.e.:
 > $ ffprobe -unit -show_format -print_format json plus2GB.avi
 >
 > So we probably also need to change line 129:
 > {{{
 >  - else            l = snprintf(buf, buf_size, "%d",   (int)vald);
 >  + else            l = snprintf(buf, buf_size, "%lld",   (long long
 int)vald);
 > }}}

 Should be fixed in a later commit, please confirm if it works for you.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/921#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list