Skip to content

Instantly share code, notes, and snippets.

@tguillem
Created December 7, 2017 11:55
Show Gist options
  • Save tguillem/038b593bdc47954e386e7d3b83789115 to your computer and use it in GitHub Desktop.
Save tguillem/038b593bdc47954e386e7d3b83789115 to your computer and use it in GitHub Desktop.
diff --git a/libavcodec/hwaccel.h b/libavcodec/hwaccel.h
index ae55527c2f..c3a993ed45 100644
--- a/libavcodec/hwaccel.h
+++ b/libavcodec/hwaccel.h
@@ -47,7 +47,8 @@ typedef struct AVCodecHWConfigInternal {
.public = { \
.pix_fmt = AV_PIX_FMT_ ## format, \
.methods = AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX | \
- AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX, \
+ AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX | \
+ AV_CODEC_HW_CONFIG_METHOD_INTERNAL, \
.device_type = AV_HWDEVICE_TYPE_ ## device, \
}, \
.hwaccel = &name, \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment