aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-09-18 23:30:55 +0100
committerMark Thompson <sw@jkqxz.net>2018-09-23 14:42:34 +0100
commit930aad6a3617406f292f5505af3cd38000da04f1 (patch)
tree0e339b65cb3582077076b630b715883f06efed05
parentff0eb2bce324a9ffa50b698fc5616536140e30d7 (diff)
downloadffmpeg-930aad6a3617406f292f5505af3cd38000da04f1.tar.gz
vaapi_encode_mjpeg: Mark as intra-only
-rw-r--r--libavcodec/vaapi_encode_mjpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vaapi_encode_mjpeg.c b/libavcodec/vaapi_encode_mjpeg.c
index db9b36321a..fe8439ce88 100644
--- a/libavcodec/vaapi_encode_mjpeg.c
+++ b/libavcodec/vaapi_encode_mjpeg.c
@@ -554,7 +554,8 @@ AVCodec ff_mjpeg_vaapi_encoder = {
.encode2 = &ff_vaapi_encode2,
.close = &vaapi_encode_mjpeg_close,
.priv_class = &vaapi_encode_mjpeg_class,
- .capabilities = AV_CODEC_CAP_HARDWARE,
+ .capabilities = AV_CODEC_CAP_HARDWARE |
+ AV_CODEC_CAP_INTRA_ONLY,
.defaults = vaapi_encode_mjpeg_defaults,
.pix_fmts = (const enum AVPixelFormat[]) {
AV_PIX_FMT_VAAPI,