[FFmpeg-trac] #872(avutil:new): av_rescale_q returns wrong 64bits in arm cortex-a8 processor

FFmpeg trac at avcodec.org
Tue Jan 3 16:55:12 CET 2012


#872: av_rescale_q returns wrong 64bits in arm cortex-a8 processor
-------------------------------------+-------------------------------------
               Reporter:  kaijun61   |                  Owner:  michael
                   Type:  defect     |                 Status:  new
               Priority:  important  |              Component:  avutil
                Version:  git-       |               Keywords:
  master                             |  av_rescale_q
             Blocked By:             |               Blocking:
Reproduced by developer:  0          |  Analyzed by developer:  0
-------------------------------------+-------------------------------------
 When I try to convert a audio pts timestamp 61415424 into clock time via
 av_rescale_q() of mathmatics.c  in arm cortext-a8 processor of
 beagleboard, it returns a wrong 64bit.
 in av_rescale_rnd(a,b,c,AV_ROUND_NEAR_INF), where a=61415424,
 b=1000000000, c=28224000, I checked it's return value is 2176000000
 (0x81B32000). But it returns 18446744071590584320 (0xFFFFFFFF81B32000). It
 seems the high 32bits return minus instead of 0x0 due to sign bit in low
 32bit (for timestamp smaller than 61415424, there is no problem). This
 case never happened when I used ffmpeg from svn repository.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/872>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list