hwFrame isn't defined unless we have HWCONTEXT_H

This commit is contained in:
Isaac Connor
2019-07-17 20:33:23 -04:00
parent 34c141304d
commit 75af397223

View File

@@ -649,10 +649,12 @@ int FfmpegCamera::Close() {
av_frame_free(&mRawFrame);
mRawFrame = NULL;
}
#if HAVE_LIBAVUTIL_HWCONTEXT_H
if ( hwFrame ) {
av_frame_free(&hwFrame);
hwFrame = NULL;
}
#endif
#if HAVE_LIBSWSCALE
if ( mConvertContext ) {