diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-10-28 17:13:53 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-11-18 21:34:04 +0000 |
commit | a830056b32feb2db463e062d4ec2b6fb47ec70ee (patch) | |
tree | d1e1236cfeb4bced022a7ee82aa137ba7d78e170 /libavcodec/hq_hqa.h | |
parent | ead0d2eb7686c41f2aac3052412755d827d525f2 (diff) | |
download | ffmpeg-a830056b32feb2db463e062d4ec2b6fb47ec70ee.tar.gz |
vaapi_encode_h264: Reduce SAR to valid range
The SAR of the input could have a numerator or denominator greater than
2^16 which would then be truncated to a 16-bit integer when written to
the VUI parameters, giving a random result. Instead, reduce the SAR to
the nearest representable fraction.
Fixes #7502.
Diffstat (limited to 'libavcodec/hq_hqa.h')
0 files changed, 0 insertions, 0 deletions