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

FFmpeg trac at avcodec.org
Wed Jan 18 17:50:55 CET 2012


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

Comment (by elkq):

 Replying to [comment:4 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.

 Yes, 54661219c12905e70ea360b8aab1386438cae99d corrects this behaviour,
 all seems fixed, thank-you.

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


More information about the FFmpeg-trac mailing list