From patchwork Fri Nov 24 00:51:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Thompson X-Patchwork-Id: 6308 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.94 with SMTP id m30csp1464653jah; Thu, 23 Nov 2017 16:52:55 -0800 (PST) X-Google-Smtp-Source: AGs4zMaFqSoUJ6Y6C7558bjZ3Re4crySBKmZq/2l/sE9k/Nz96GnfWElDxSOp35C3bg5SoDLxiNv X-Received: by 10.223.151.212 with SMTP id t20mr23524320wrb.2.1511484774953; Thu, 23 Nov 2017 16:52:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511484774; cv=none; d=google.com; s=arc-20160816; b=Ok8RpUPpYNzKw3F968sOSmu27aU75akSKOx4jHL1i6+UmDD0yoG1hC7+BkJOsiptmI b26Z4dLmgDlbJGgX5X49yvEquRV+BAaiXVmc7p0uTdNDSUcLyTZOv692oHDx2Of5/YuB qSRp5wnPT6xG5QMJM6hatLMx/Ob3p90uCq7sxEW7UcyyzOpJZ+8PuXT+2OiZjT0j2vAf BaYR4xTm/y9Hus/1gaCogQJIDDA5/m8841ip1Rpe+i0Kb0RHZm3vM0fmUuiDinxIF00L he872V5gsXu0qq6WHdbOqrnBOLnYXop00z35ZBbW6BfEkuoJ8aEr/p58LaicXl7+oFXW L2CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=SpbsAZaPzFpRrHIS4Ao6QIzl9u4IdLkZ3NchJfcbAII=; b=g14Ju+Q536yV/r8m7h6V3yEq5PtBuF32srWLTJRy8o6NVUYVF+XhdpPA1hvwetPNWJ JloBDxSuQdAoOnmaSc08zkmf+MmJDu1ih5skt06lD/P8kytWWiGs3gcR+syRu6vZqJKj Y2c/sCvste+yIMaxUkl93SwQCSMeYC91CVqj8qtGhCtkw+lGBKQDNZkdZ9t5+Xo7jF0Y uOqobiN+g6G/ZxvLvz/j0az0RBeDz46a2nyJFpbRsljTnFykuQQQrsJ9hUcyLWgXsruf UVG1VxSwib/DCDmXMXgv3XtbyGjyBeL82Ld/7Zdtd+V6auACSGRTJVjFMlwHPZBc2lB1 Ye8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@jkqxz-net.20150623.gappssmtp.com header.s=20150623 header.b=fDSDbqTW; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id v11si6254678wmc.135.2017.11.23.16.52.54; Thu, 23 Nov 2017 16:52:54 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@jkqxz-net.20150623.gappssmtp.com header.s=20150623 header.b=fDSDbqTW; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1CFB068A255; Fri, 24 Nov 2017 02:51:54 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 703F468A1F7 for ; Fri, 24 Nov 2017 02:51:50 +0200 (EET) Received: by mail-wr0-f195.google.com with SMTP id a63so18932828wrc.12 for ; Thu, 23 Nov 2017 16:51:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jkqxz-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=FuOEF5VTHonwoXwXC5zY/EmuKWkM4hR3clfOFEZVLNI=; b=fDSDbqTWrlbSpzBCTBWbm4uueJWT9xY3zXbL5UZtzaZKrLjksIRzU4/T5uDISF6lgX TxBxVI9K/EMkxzp1lDGed4xREQzCh6e/lQV984VkmIwGLxLaE13VWb4zZfHiP4nClv8e /7vLveWKi+t7I4E5LUtevi/MwIGNhSrKTONcnoX9+X/+wUzJ6wydE9R41ZL6cb8pj47/ x2JSxetPQf3+aXtLH2qzzapuU/6sJ7MywyzA4pv5xMhNz1b/YT2ISQqNx4Zr+Biz61sR qudDQalBaAsMfeTFLJHftWVlIvEAUogLjN0pny0ZEOLe8TpbQAb5prN4vU4sXHjxmQtY rn+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=FuOEF5VTHonwoXwXC5zY/EmuKWkM4hR3clfOFEZVLNI=; b=HjN/DF39IGjFiEFttDVk66IE6TnaPP+V+zITPD299vgu1fbbx9OkoOM3SdNPBriF+n TN5NPxSbbKjzTsRR1XtYo3BEOO25/f6cwIKi664ddJ4ndaLWAKBW/hRzEkMtPnQ4uoSH JmAuIPlNCFqqBX3OcEPZdHSJ2XFIeI7amgiwOu9rDFzM/k5RM7hphwNVgGr1VzME+r3R AIbtBYJ8qfuuQaq03xAssFcU3OePuH6G8a0AmGcLOvQmTzZToJkatknhxFtL+bXLcD0X yQkKyykHHDcI5De3soIjHV/nZrSvm6JFgM7CUeHLWucnUjQ0yFptruv1waLJko3sLpjk DgsQ== X-Gm-Message-State: AJaThX6scr6E8IkLoIZoZrZJGBvUpVF4Hu73WdEyNsGx9jVt6o1A1A7h M+Tg+2zfDlQpDdw7HbT/vgypjVts X-Received: by 10.223.157.195 with SMTP id q3mr16688260wre.241.1511484710698; Thu, 23 Nov 2017 16:51:50 -0800 (PST) Received: from rywe.jkqxz.net (cpc91242-cmbg18-2-0-cust650.5-4.cable.virginm.net. [82.8.130.139]) by smtp.gmail.com with ESMTPSA id h7sm4489655wrb.35.2017.11.23.16.51.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 16:51:50 -0800 (PST) From: Mark Thompson To: ffmpeg-devel@ffmpeg.org Date: Fri, 24 Nov 2017 00:51:29 +0000 Message-Id: <20171124005134.5683-12-sw@jkqxz.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171124005134.5683-1-sw@jkqxz.net> References: <20171124005134.5683-1-sw@jkqxz.net> Subject: [FFmpeg-devel] [PATCH 12/17] vaapi_decode: Ignore the profile when not useful X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Enables VP8 decoding - the decoder places the the bitstream version in the profile field, which we want to ignore. --- libavcodec/vaapi_decode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c index d36ef906a2..572b3a40ac 100644 --- a/libavcodec/vaapi_decode.c +++ b/libavcodec/vaapi_decode.c @@ -324,7 +324,8 @@ static int vaapi_decode_make_config(AVCodecContext *avctx, int profile_match = 0; if (avctx->codec_id != vaapi_profile_map[i].codec_id) continue; - if (avctx->profile == vaapi_profile_map[i].codec_profile) + if (avctx->profile == vaapi_profile_map[i].codec_profile || + vaapi_profile_map[i].codec_profile == FF_PROFILE_UNKNOWN) profile_match = 1; for (j = 0; j < profile_count; j++) { if (vaapi_profile_map[i].va_profile == profile_list[j]) {