Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #196458

Category ffmpeg
Changed by Derek Buitenhuis <derek.buitenhuisohnoyoudont@gmail.com>
Changed at Sun 05 May 2024 12:56:29
Repository https://git.ffmpeg.org/ffmpeg.git
Project ffmpeg
Branch master
Revision f8a613d6a86f1f2875cbebc8f1f60cfe39256fd1

Comments

fftools/ffprobe: Avoid overflow when calculating DAR
Both the codecpar's width and height, and the SAR num and den are
ints, which can overflow. Cast to int64_t, which is what av_reduce
takes.

Without this, occasionally, display_aspect_ratio can be negative in
ffprobe's -show_stream output.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>

Changed files