context: JPEG codec does not need any reference frame.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 10 Sep 2012 16:17:10 +0000 (18:17 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 10 Sep 2012 16:17:10 +0000 (18:17 +0200)
gst-libs/gst/vaapi/gstvaapicontext.c

index 1862e38..fe15bdc 100644 (file)
@@ -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;