From patchwork Fri Mar 31 14:58:29 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: 3222 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.44.195 with SMTP id s186csp2080788vss; Fri, 31 Mar 2017 07:58:43 -0700 (PDT) X-Received: by 10.28.30.197 with SMTP id e188mr3450255wme.99.1490972323305; Fri, 31 Mar 2017 07:58:43 -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 r131si3802212wmg.74.2017.03.31.07.58.42; Fri, 31 Mar 2017 07:58:43 -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 59B676899CE; Fri, 31 Mar 2017 17:58:39 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qt0-f195.google.com (mail-qt0-f195.google.com [209.85.216.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 24A3B689894 for ; Fri, 31 Mar 2017 17:58:33 +0300 (EEST) Received: by mail-qt0-f195.google.com with SMTP id r5so10536462qtb.2 for ; Fri, 31 Mar 2017 07:58:33 -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:in-reply-to:references; bh=bOmHaDggTFP6E67QMbhL3SQ1I2ncr/QF2FEUmOJaWQ4=; b=JPygqND1ho99pawvlEZwxJV83hvG2S8+264ZRb3eJuYCDBpedptCM+JXnYugHYgHOh 7MD+d8JyvcYg9sLI6gXUOCn2nSD2A5eqHOfr067uzA5mTiiqX7r+zsseKJ0Zxp6x+gyg GPOl/dRLGTqoae8rXWqsbbjWdMJBwt2OZ0JtMKBOjk9UD/ZldvhXPpR4aymYtMyZPEOY SQOqdSkSrvKVpxtR4yb6jIzb8xyBYJ9IcwxC326VAdKCVwhQbW4pA21jaRbYFv53Y1FZ ldDyjjyxHq1jAuCegh8uT3soRQc5Zf32X9msnE3uaZDyepy/vqFZrRXyzFs2cmfOa5YV 0P9g== 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:in-reply-to :references; bh=bOmHaDggTFP6E67QMbhL3SQ1I2ncr/QF2FEUmOJaWQ4=; b=hDfNqi26R10wEkugGiXyOW8ZqzdD+VtEB3rmi/g9eEoto7kHE5/d2H9G0SkIa+iu1W 2+l57EM9GJhRtJk8LSC/gfwUn6MsARDkHZ4e+q9FXKEqkeFAFEOYMKd/h4YH6PER9uJ1 lJrBfIFKTWISpCc8mgmaEhHTHV8AmacXHaPY8izu5/oC38tsqoGhyqosr5SefC1VQEJv pWZmcCyi3l4k1q41tn9UIwHAixYhQkdBw84S2QqKnPQGMNLlg7wVG6YjWGSaYViR//lJ DRsDqrBLYEkpGWAGFJzx9LDArRjNg0nn5vHFvSLEbArvViGWpzFXpk+/ZkzzSn5sOazo IQ8A== X-Gm-Message-State: AFeK/H3Xt9/4BGmKBFjVgzJHhLbi2PZ9SK2bvcUL8zuLugHV76SLx2C9m4UFCELTPl+Fgg== X-Received: by 10.200.57.161 with SMTP id v30mr3074699qte.129.1490972312296; Fri, 31 Mar 2017 07:58:32 -0700 (PDT) Received: from localhost.localdomain ([65.206.95.146]) by smtp.gmail.com with ESMTPSA id o91sm3654410qte.42.2017.03.31.07.58.31 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 31 Mar 2017 07:58:31 -0700 (PDT) From: "Ronald S. Bultje" To: ffmpeg-devel@ffmpeg.org Date: Fri, 31 Mar 2017 10:58:29 -0400 Message-Id: <1490972309-57965-1-git-send-email-rsbultje@gmail.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1490969536-56978-1-git-send-email-rsbultje@gmail.com> References: <1490969536-56978-1-git-send-email-rsbultje@gmail.com> Subject: [FFmpeg-devel] [PATCH] codec_desc: mark some lossless audio codecs as intraonly. 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 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c index 9711019..041b797 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, @@ -2341,7 +2341,7 @@ static const AVCodecDescriptor codec_descriptors[] = { .type = AVMEDIA_TYPE_AUDIO, .name = "alac", .long_name = NULL_IF_CONFIG_SMALL("ALAC (Apple Lossless Audio Codec)"), - .props = AV_CODEC_PROP_LOSSLESS, + .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS, }, { .id = AV_CODEC_ID_WESTWOOD_SND1, @@ -2383,7 +2383,7 @@ static const AVCodecDescriptor codec_descriptors[] = { .type = AVMEDIA_TYPE_AUDIO, .name = "tta", .long_name = NULL_IF_CONFIG_SMALL("TTA (True Audio)"), - .props = AV_CODEC_PROP_LOSSLESS, + .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS, }, { .id = AV_CODEC_ID_SMACKAUDIO, @@ -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, @@ -2712,7 +2713,7 @@ static const AVCodecDescriptor codec_descriptors[] = { .type = AVMEDIA_TYPE_AUDIO, .name = "tak", .long_name = NULL_IF_CONFIG_SMALL("TAK (Tom's lossless Audio Kompressor)"), - .props = AV_CODEC_PROP_LOSSLESS, + .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS, }, { .id = AV_CODEC_ID_METASOUND,