From 3bb090e6b8ddae964dbc5a19ef132c6e3115d4e4 Mon Sep 17 00:00:00 2001 From: Wind Yuan Date: Thu, 2 Jan 2014 13:09:15 +0800 Subject: [PATCH] h264 dec: workaround to enable baseline profile Fallback to main profile if baseline marked. --- gst-libs/gst/vaapi/gstvaapidecoder_h264.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c index bf553e5..1412ebe 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c @@ -1072,9 +1072,9 @@ get_profile(GstVaapiDecoderH264 *decoder, GstH264SPS *sps) if (sps->constraint_set1_flag) { // A.2.2 (main profile) fill_profiles(profiles, &n_profiles, GST_VAAPI_PROFILE_H264_CONSTRAINED_BASELINE); - fill_profiles(profiles, &n_profiles, - GST_VAAPI_PROFILE_H264_MAIN); } + fill_profiles(profiles, &n_profiles, + GST_VAAPI_PROFILE_H264_MAIN); break; case GST_VAAPI_PROFILE_H264_EXTENDED: if (sps->constraint_set1_flag) { // A.2.2 (main profile) -- 1.7.9.5