summaryrefslogtreecommitdiff
path: root/gst-libs/gst
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-09-10 18:17:10 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-09-10 18:17:10 +0200
commit893e45ecb507376566d0edaa1f6bfa6a2907d42f (patch)
tree3d4df3cbbf66555b6c7b38de8c59342b5ea86da8 /gst-libs/gst
parent4ca1f3f47c44db2347adf5606f058250179f38c7 (diff)
context: JPEG codec does not need any reference frame.
Diffstat (limited to 'gst-libs/gst')
-rw-r--r--gst-libs/gst/vaapi/gstvaapicontext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapicontext.c b/gst-libs/gst/vaapi/gstvaapicontext.c
index 1862e380..fe15bdc9 100644
--- a/gst-libs/gst/vaapi/gstvaapicontext.c
+++ b/gst-libs/gst/vaapi/gstvaapicontext.c
@@ -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;