mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-18 03:25:02 -04:00
hwFrame isn't defined unless we have HWCONTEXT_H
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user