diff options
author | Thomas Guillem <thomas@gllm.fr> | 2018-07-04 09:05:22 +0200 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2018-07-19 09:26:01 -0700 |
commit | 93e157f40f415119ea0f94b35596965e9870f863 (patch) | |
tree | de69adaa2875578234132927b5d0dbe05dae92f8 /libavformat/oggparseskeleton.c | |
parent | 37644f047703aab4562429d9e4441ba6b4eab8ca (diff) | |
download | ffmpeg-93e157f40f415119ea0f94b35596965e9870f863.tar.gz |
avcodec/videotoolboxenc: fix undefined behavior with rc_max_rate=0
On macOS, a zero rc_max_rate cause an error from
VTSessionSetProperty(kVTCompressionPropertyKey_DataRateLimits).
on iOS (depending on device/version), a zero rc_max_rate cause invalid
arguments from the vtenc_output_callback after few frames and then a crash
within the VideoToolbox library.
Signed-off-by: Aman Gupta <aman@tmm1.net>
Diffstat (limited to 'libavformat/oggparseskeleton.c')
0 files changed, 0 insertions, 0 deletions