st/vdpau: add h264 decoder level support

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
Leo Liu 2015-03-12 14:09:49 -04:00 committed by Marek Olšák
parent 4509fc8b94
commit d043b51ba4
1 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,11 @@ vlVdpDecoderCreate(VdpDevice device,
templat.height = height;
templat.max_references = max_references;
if (u_reduce_video_profile(templat.profile) ==
PIPE_VIDEO_FORMAT_MPEG4_AVC)
templat.level = u_get_h264_level(templat.width, templat.height,
&templat.max_references);
vldecoder->decoder = pipe->create_video_codec(pipe, &templat);
if (!vldecoder->decoder) {