From patchwork Fri Jan 24 10:33:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 17502 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 2729844B5D2 for ; Fri, 24 Jan 2020 12:41:22 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 086BE68B04D; Fri, 24 Jan 2020 12:41:22 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AD61C68AED3 for ; Fri, 24 Jan 2020 12:41:15 +0200 (EET) Received: by mail-pl1-f196.google.com with SMTP id d9so589603plo.11 for ; Fri, 24 Jan 2020 02:41:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jailuthra-in.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=6ZDVuBU8Euw2dr4UOStg4naMpjPngP0Gs8sN/vsdR5o=; b=oFQSuHA2Hieleuwo9nT+VociOsIPnMHxcQQNS4TURObo1TdUgqy01ooDlBXRTGu5Dc MTuOxSj/03CFNJ5YU3U6KWF5SKewSy9hM1jAUWX639HLDGa7x78yF9pH4ItCsNCDMTKa h/PQDqvsV8j+aWvhc6MNR6jhufs4qSHKpOMt7cBV1Lbzv0dTsDJX31+eQWEZA9jAGod4 d8ENqrwrxrbEPheyrKxBTuUDo8Kkpk6H7jzuUHNSSGkWmufX9mOfaNzbHYY+EtkMMmTc JyeymB5qLhlSRi/oHZOuyo/HfOP8ttoEflUkyjGusEvibH8YH3psX6GTnzskX2rFATbF tG8w== 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:mime-version :content-transfer-encoding; bh=6ZDVuBU8Euw2dr4UOStg4naMpjPngP0Gs8sN/vsdR5o=; b=Nz2YaOX3Yx3ne5tCfKSRmiuw+aI2nzGaIyZ/fssKthsM8Imxm5XQluHyZO5heKrSQg SipK4/U8uZigei45f0aHC1oXZXQZc3UR2KFduABCo6+RU3Wdixl4UoBby8yjMXpwrjOB /o3/QbrfQ4hOfHbCzgYhBtql9IF6c3atOexqQ78oBTZY+9r79VialQt9BKnGamx6SuYi A9txasgD+NRKvy7psmBBlt8pNBwcFZrR1r6AMWaV5dkaZbit8m0aEc3sDhrnEJWexEzA 4MCYBelwNkzW0d+4rLQFVegeCFGvCgR+TopZP/MIhGVFelrykLcPqUY2nE+tF1TlT5Zi ywWQ== X-Gm-Message-State: APjAAAW9WJIMwtfWL7m/H8dWwkWDZ/WLTRCPKDa9tmMtOl9+d4tY2vb8 u72S7jj4rQO1aqi3z/3ReLkCw9Qqxqg= X-Google-Smtp-Source: APXvYqwUGlzl01BtAkCiW/gyylIlcgVtZXDmUpjWzB4yau+4zUdSaTd8HTXzDqz8GTIpOxmxY5cYBw== X-Received: by 2002:a62:6401:: with SMTP id y1mr2672273pfb.18.1579862024414; Fri, 24 Jan 2020 02:33:44 -0800 (PST) Received: from localhost.localdomain ([49.207.55.142]) by smtp.googlemail.com with ESMTPSA id j125sm5471274pfg.160.2020.01.24.02.33.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2020 02:33:43 -0800 (PST) From: Jai Luthra To: ffmpeg-devel@ffmpeg.org Date: Fri, 24 Jan 2020 16:03:29 +0530 Message-Id: <20200124103334.110855-1-me@jailuthra.in> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 0/5] mlpenc: fix lossless check failures for 16-bit encoding 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" This patchset fixes lossless check failures for 16-bit mlp/truehd encoding. Please check with more samples and let me know if you find any lossless failures. Bug 6216 https://trac.ffmpeg.org/ticket/6216 still cannot be closed as last few frames aren't encoded, thus output is not bit-exact. I will continue on the WIP patch Paul posted earlier and try to fix this. 32-bit encoding still has many lossless failures, so keeping it disabled for now. Will work on it later. Jai Luthra (5): mlpenc: fix lossless check error in number_sbits mlpenc: fix huff offset calculation mlpenc: prevent negative lsb_bits lshift mlpenc: improve lpc filtering mlpenc: clean up libavcodec/mlpenc.c | 74 +++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 39 deletions(-)