context: JPEG codec does not need any reference frame.

This commit is contained in:
Gwenole Beauchesne 2012-09-10 18:17:10 +02:00
parent 4ca1f3f47c
commit 893e45ecb5

View 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;