From 893e45ecb507376566d0edaa1f6bfa6a2907d42f Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Mon, 10 Sep 2012 18:17:10 +0200 Subject: [PATCH] context: JPEG codec does not need any reference frame. --- gst-libs/gst/vaapi/gstvaapicontext.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/vaapi/gstvaapicontext.c b/gst-libs/gst/vaapi/gstvaapicontext.c index 1862e38080..fe15bdc914 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;