mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
context: JPEG codec does not need any reference frame.
This commit is contained in:
parent
4ca1f3f47c
commit
893e45ecb5
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ get_max_ref_frames(GstVaapiProfile profile)
|
|||
|
||||
switch (gst_vaapi_profile_get_codec(profile)) {
|
||||
case GST_VAAPI_CODEC_H264: ref_frames = 16; break;
|
||||
case GST_VAAPI_CODEC_JPEG: ref_frames = 0; break;
|
||||
default: ref_frames = 2; break;
|
||||
}
|
||||
return ref_frames;
|
||||
|
|
Loading…
Reference in a new issue