You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc/videotoolboxenc: fix open videotoolbox bug on iOS8.4
Checks for NULL before using object. Signed-off-by: Rick Kern <kernrj@gmail.com>
This commit is contained in:
@@ -1285,7 +1285,7 @@ static av_cold int vtenc_init(AVCodecContext *avctx)
|
|||||||
kCFAllocatorDefault,
|
kCFAllocatorDefault,
|
||||||
&has_b_frames_cfbool);
|
&has_b_frames_cfbool);
|
||||||
|
|
||||||
if (!status) {
|
if (!status && has_b_frames_cfbool) {
|
||||||
//Some devices don't output B-frames for main profile, even if requested.
|
//Some devices don't output B-frames for main profile, even if requested.
|
||||||
vtctx->has_b_frames = CFBooleanGetValue(has_b_frames_cfbool);
|
vtctx->has_b_frames = CFBooleanGetValue(has_b_frames_cfbool);
|
||||||
CFRelease(has_b_frames_cfbool);
|
CFRelease(has_b_frames_cfbool);
|
||||||
|
Reference in New Issue
Block a user