diff options
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/videotoolboxenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index 7b901db..22eaeb0 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -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); |