[FFmpeg-devel] [PATCH]lavd/decklink_dec: Make bitrate calculation 64bit

Nicolas George george at nsup.org
Thu Apr 28 17:30:36 CEST 2016


Le decadi 10 floréal, an CCXXIV, Carl Eugen Hoyos a écrit :
> I hope attached patch fixes an issue seen in a decklink user report where 
> the bit_rate was negative. Or should the division be changed to 1ULL/...?

This does not make the computation 64 bits, it makes them whatever the size
happens to be for long long on this compiler and architecture. To make the
computations 64 bits, a cast is in order: "(uint64_t)".

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160428/04be52d9/attachment.sig>


More information about the ffmpeg-devel mailing list