[FFmpeg-devel] [PATCH]lavd/decklink_dec: Make bitrate calculation 64bit
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)".
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: Digital signature
More information about the ffmpeg-devel