Skip to content
Snippets Groups Projects
Commit 93e157f4 authored by Thomas Guillem's avatar Thomas Guillem Committed by Aman Gupta
Browse files

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: default avatarAman Gupta <aman@tmm1.net>
parent 37644f04
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment