Skip to content

Commit f434b06

Browse files
authored
Move #endif
Move av_hwdevice_get_hwframe_constraints inside the part of the code only compiled when testing VAAPI constraint detection.
1 parent 04d1a58 commit f434b06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FFmpegReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,8 @@ void FFmpegReader::Open() {
445445
// TODO: needs va_config!
446446
#if ENABLE_VAAPI
447447
((AVVAAPIHWConfig *)hwconfig)->config_id = ((VAAPIDecodeContext *)(pCodecCtx->priv_data))->va_config;
448-
#endif
449448
constraints = av_hwdevice_get_hwframe_constraints(hw_device_ctx,hwconfig);
449+
#endif
450450
if (constraints) {
451451
if (pCodecCtx->coded_width < constraints->min_width ||
452452
pCodecCtx->coded_height < constraints->min_height ||

0 commit comments

Comments
 (0)