diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-09-18 23:30:47 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-09-23 14:42:33 +0100 |
commit | bf726c26fde26601a90daacf1b10a9860d21321c (patch) | |
tree | 9ed0e2a816515ea53a488410333c86f18e522e1f /libavcodec/vaapi_encode_mjpeg.c | |
parent | 8479f99c7dd227d9cb94d262602f1298f71cf33b (diff) | |
download | ffmpeg-bf726c26fde26601a90daacf1b10a9860d21321c.tar.gz |
vaapi_encode: Clean up the GOP structure configuration
Choose what types of reference frames will be used based on what types
are available, and make the intra-only mode explicit (GOP size one,
which must be used for MJPEG).
Diffstat (limited to 'libavcodec/vaapi_encode_mjpeg.c')
-rw-r--r-- | libavcodec/vaapi_encode_mjpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vaapi_encode_mjpeg.c b/libavcodec/vaapi_encode_mjpeg.c index 67ac2fba96..4982cd166f 100644 --- a/libavcodec/vaapi_encode_mjpeg.c +++ b/libavcodec/vaapi_encode_mjpeg.c @@ -401,6 +401,7 @@ static av_cold int vaapi_encode_mjpeg_init(AVCodecContext *avctx) static const AVCodecDefault vaapi_encode_mjpeg_defaults[] = { { "global_quality", "80" }, { "b", "0" }, + { "g", "1" }, { NULL }, }; |