Commit 9f26d670 authored by jerett's avatar jerett Committed by Rick Kern

lavc/videotoolboxenc: fix open videotoolbox bug on iOS8.4

Checks for NULL before using object.
Signed-off-by: 's avatarRick Kern <kernrj@gmail.com>
parent 82a8724d
......@@ -1285,7 +1285,7 @@ static av_cold int vtenc_init(AVCodecContext *avctx)
kCFAllocatorDefault,
&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.
vtctx->has_b_frames = CFBooleanGetValue(has_b_frames_cfbool);
CFRelease(has_b_frames_cfbool);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment