From patchwork Wed Mar 29 14:32:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ronald S. Bultje" X-Patchwork-Id: 3177 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.44.195 with SMTP id s186csp1119489vss; Wed, 29 Mar 2017 07:32:54 -0700 (PDT) X-Received: by 10.28.226.4 with SMTP id z4mr1668471wmg.135.1490797974422; Wed, 29 Mar 2017 07:32:54 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id w75si7427459wmd.74.2017.03.29.07.32.53; Wed, 29 Mar 2017 07:32:54 -0700 (PDT) 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=@gmail.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8E2AC689A99; Wed, 29 Mar 2017 17:32:27 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk0-f194.google.com (mail-qk0-f194.google.com [209.85.220.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 89A07689A67 for ; Wed, 29 Mar 2017 17:32:20 +0300 (EEST) Received: by mail-qk0-f194.google.com with SMTP id p22so2270375qka.0 for ; Wed, 29 Mar 2017 07:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=NIUpZpWqg6Mz782fWfJ8Q2Ssgcz4EgT4uWNgW2zBilk=; b=teVQd12CGODTanTPYWxCZerO9SQEZDcuSh2ms08ce0rIVaxC4MAfoYHkD8RavckTOb hpju2IGJNGOMI5ymPOUac/x3up9wdwoaHfrbfCBGPavAtHEF/ZxKd3QVd8EWiy2kOj4/ fpIP/Q7ntd/jLD0T1gMWV3tYp2tPtwhurNN1RnwSrqjjFS0OBPtMauwkPsuWNo7fSfiO aD/a3kg3zI4mwjVx1dPpd2x66b4Cob2A6kwa6YAoTSdQvxWD+amDHpZ5ORJ+kcLTRTKW nyIcLrOJWM0YTaIufPYTWwupTdxusCierrZ+U/+VJds+spgj99RUv4N89XBtZ22R2T1a CDDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NIUpZpWqg6Mz782fWfJ8Q2Ssgcz4EgT4uWNgW2zBilk=; b=DmH59e2r2SbzbnPheNTVgf6Le6NT6sez7z1idJ+TUMxOOLRu0r34WmaWAfr/26MY73 s8ZamKWC8hX7KXKO39JTPxh/ynufj7pZMFbV4c5lSyp4scDOA5vkBztNl0ZVS7DMfC+t w2Y7Rmm+q0M/0oA8IhkPg5yM5jfu4d0+R4vHnBsBtP2ObIB66OspnjvWeIA0zBlyNbns SjnWFdoK/kvrAjGIdfEocNgDU7v+M04TuM2Y8fDVlAuuOSodvb2SBffMGvG/iam3BvfC 2xewerQ/DkSa2SDwZ1ungwZLbxjqTCBfvzjmC+4/1nJj8SNeKc831/mCPqC3zzdK/aS9 YKpQ== X-Gm-Message-State: AFeK/H1Togt1z7NSswV3OIdJAZ+dcwoEJgqqugrdIGWi/Dgf+ZZ61T2Jp8TPDALSMbqRug== X-Received: by 10.55.111.197 with SMTP id k188mr833436qkc.226.1490797962079; Wed, 29 Mar 2017 07:32:42 -0700 (PDT) Received: from localhost.localdomain ([65.206.95.146]) by smtp.gmail.com with ESMTPSA id s46sm5004627qtc.62.2017.03.29.07.32.41 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 29 Mar 2017 07:32:41 -0700 (PDT) From: "Ronald S. Bultje" To: ffmpeg-devel@ffmpeg.org Date: Wed, 29 Mar 2017 10:32:39 -0400 Message-Id: <1490797959-77620-1-git-send-email-rsbultje@gmail.com> X-Mailer: git-send-email 2.8.1 Subject: [FFmpeg-devel] [PATCH] codec_desc: mark flac/wavpack as intraonly codecs. 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 Cc: "Ronald S. Bultje" MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavcodec/codec_desc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c index 9711019..803d802 100644 --- a/libavcodec/codec_desc.c +++ b/libavcodec/codec_desc.c @@ -2313,7 +2313,7 @@ static const AVCodecDescriptor codec_descriptors[] = { .type = AVMEDIA_TYPE_AUDIO, .name = "flac", .long_name = NULL_IF_CONFIG_SMALL("FLAC (Free Lossless Audio Codec)"), - .props = AV_CODEC_PROP_LOSSLESS, + .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS, }, { .id = AV_CODEC_ID_MP3ADU, @@ -2404,7 +2404,8 @@ static const AVCodecDescriptor codec_descriptors[] = { .type = AVMEDIA_TYPE_AUDIO, .name = "wavpack", .long_name = NULL_IF_CONFIG_SMALL("WavPack"), - .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_LOSSLESS, + .props = AV_CODEC_PROP_INTRA_ONLY | + AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_LOSSLESS, }, { .id = AV_CODEC_ID_DSICINAUDIO,