VAVDA: Fallback to H264 Constrained Baseline if Baseline is unsupported.
VAVDA: Fallback to H264 Constrained Baseline if Baseline is unsupported.

Due to crbug.com/345569, we are currently always given Baseline profile
in Initialize, even if the profile is actually Constrained Baseline.
Intel HW codec supports Constrained Baseline only. Since Baseline is
a superset of Constrained Baseline, try to use Baseline, but if it is not
supported, fall back to Constrained Baseline. Baseline is relatively rare,
as is the usage of Baseline-only FMO/ASO features, so this should not make
us fail in majority of cases.

Actually, libva-intel-driver until 1.2.2 used to accept Baseline instead
of Constrained Baseline as well
(see http://cgit.freedesktop.org/vaapi/intel-driver/commit/?id=9d0bd942552a68411f2c223e362591ac9520a7f8),
which made us not fail when asking for Baseline instead of Constrained
before. Without this change, after updating to 1.2.2, we would start
failing instead, so this is effectively maintaining the current behavior.

BUG=chromium:341289
TEST=play constrained baseline streams on driver v1.2.1 and 1.2.2, vdatest

Review URL: https://codereview.chromium.org/174703003

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@253651 0039d316-1c4b-4281-b951-d872f2087c98

fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,dednal/chromium.src,hgl888/chromium-crosswalk,M4sse/chromium.src,dednal/chromium.src,dednal/chromium.src,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,anirudhSK/chromium,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,Chilledheart/chromium,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Chilledheart/chromium,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk-efl,littlstar/chromium.src,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,dednal/chromium.src,patrickm/chromium.src,Chilledheart/chromium,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,dednal/chromium.src,littlstar/chromium.src,Jonekee/chromium.src,Chilledheart/chromium,Jonekee/chromium.src,M4sse/chromium.src,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,anirudhSK/chromium,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,Jonekee/chromium.src,fujunwei/chromium-crosswalk,anirudhSK/chromium,ondra-novak/chromium.src,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,bright-sparks/chromium-spacewalk,patrickm/chromium.src,anirudhSK/chromium,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,dednal/chromium.src,jaruba/chromium.src,M4sse/chromium.src,patrickm/chromium.src,Chilledheart/chromium,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,axinging/chromium-crosswalk,markYoungH/chromium.src,ltilve/chromium,ltilve/chromium,jaruba/chromium.src,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,markYoungH/chromium.src,anirudhSK/chromium,anirudhSK/chromium,Jonekee/chromium.src,patrickm/chromium.src,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,Chilledheart/chromium,axinging/chromium-crosswalk,dednal/chromium.src,ltilve/chromium,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,chuan9/chromium-crosswalk,M4sse/chromium.src,bright-sparks/chromium-spacewalk,jaruba/chromium.src,bright-sparks/chromium-spacewalk,chuan9/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ltilve/chromium,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk,M4sse/chromium.src,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk,dushu1203/chromium.src,markYoungH/chromium.src,PeterWangIntel/chromium-crosswalk,Pluto-tv/chromium-crosswalk,ondra-novak/chromium.src,jaruba/chromium.src,patrickm/chromium.src,axinging/chromium-crosswalk,dushu1203/chromium.src,axinging/chromium-crosswalk,littlstar/chromium.src,TheTypoMaster/chromium-crosswalk,littlstar/chromium.src,Just-D/chromium-1,krieger-od/nwjs_chromium.src,littlstar/chromium.src,ltilve/chromium,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,markYoungH/chromium.src,axinging/chromium-crosswalk,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,Jonekee/chromium.src,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,axinging/chromium-crosswalk,Chilledheart/chromium,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,Just-D/chromium-1,dushu1203/chromium.src,markYoungH/chromium.src,chuan9/chromium-crosswalk,dednal/chromium.src,ondra-novak/chromium.src,dushu1203/chromium.src,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,jaruba/chromium.src,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,Fireblend/chromium-crosswalk,dushu1203/chromium.src,axinging/chromium-crosswalk,Jonekee/chromium.src,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,dushu1203/chromium.src,M4sse/chromium.src,M4sse/chromium.src,M4sse/chromium.src,markYoungH/chromium.src,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,markYoungH/chromium.src,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,M4sse/chromium.src,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Just-D/chromium-1,anirudhSK/chromium,hgl888/chromium-crosswalk,Just-D/chromium-1,littlstar/chromium.src,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,mohamed--abdel-maksoud/chromium.src,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,anirudhSK/chromium,chuan9/chromium-crosswalk,ondra-novak/chromium.src,dednal/chromium.src,M4sse/chromium.src,Fireblend/chromium-crosswalk,bright-sparks/chromium-spacewalk,jaruba/chromium.src,jaruba/chromium.src,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,ltilve/chromium,Jonekee/chromium.src,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,ltilve/chromium,ltilve/chromium,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,ltilve/chromium,jaruba/chromium.src,Jonekee/chromium.src,littlstar/chromium.src,patrickm/chromium.src,Just-D/chromium-1,hgl888/chromium-crosswalk,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src