From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 6006942CFC for ; Fri, 3 Jun 2022 16:19:38 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CCEE468B812; Fri, 3 Jun 2022 19:19:36 +0300 (EEST) Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DE13D68B5C4 for ; Fri, 3 Jun 2022 19:19:30 +0300 (EEST) Received: by mail-yb1-f181.google.com with SMTP id l204so14545353ybf.10 for ; Fri, 03 Jun 2022 09:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=+03cFpqwa18jT6C04e92lEIiRYMVpcSIVSrUNIu8VXA=; b=jHKE8mL4zCpMP0ZNNlTw37dJM9ODCxshQz7yJMiMK5EkOFVgUHMrrRvCIh5cOLgUO/ 5vpGZygOPzO3WEHSLd1a+qxlSizRf2m0rWF21aua+jEGdIuP9CKNihuEiGequLz8WaSI dpafjHeiSQppqJY5GdBDnowzIQ1GyyuazxA1LxMXMzDqG/bQ+R3b4o/L64160jcLSe2n zPB3jdrNEmiPnI/iYhtA7BzAWlVBCM8ptnVF4bbUMT8lfSx+g+v2MrhEi6OGtETqKpFA srnAdgdqAE1HFB8KVl/xqbuS/O5jfZmIEET+3GynNjK4L9A10hXi+xAxc//KFDsVLj02 GHrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=+03cFpqwa18jT6C04e92lEIiRYMVpcSIVSrUNIu8VXA=; b=u3TpkID0+rdbjx41rG21i/HdvrF4YPSQNdMqvC/BZiJ4o0fqlAhRDLljDLlBztjg3d fBLuXSfv5Cz9/BsKoxhnO/hCBQd5vgtS58dt8JuEHiGCWSQ2bH1Il9ERINn+ZquwfWXy Rua7nVPscMQgpROBNJbwbO/DIdeO5ctvx5xfcQgsvduCKTfu9p4KUhaZwHEj2dSioEsb FntJ/kG5NXJoLd2rRIF4q/DXHOjCAYbk7tWDUuItSWj/wrfK2QUMgXMr6Vaz6s9PupYr wVtCYrz4WpPE2OBv1jLZD+zN8AeJExdpWs4C11TDUxXfSJc7+Z2BeKomN1wM8R82Btdg APmw== X-Gm-Message-State: AOAM5328kzkRhqO9/y4XQJh85icvcCh/FoONQZBSeCCcbG3xdMYYkx1K kdQchwRmLwQ7TyDJTUb3l/MXKlEGfRE7/Sb4ZbFRrcbEZ7Y= X-Google-Smtp-Source: ABdhPJwhx/pK6S6s16S7HWC+VKpRWhYaOduUcDv2EkvSKeS9YOkYtwTnPHGPHazY9fe1rb6UYuTLpRHQsro/17Y8Br4= X-Received: by 2002:a25:6708:0:b0:65d:675e:9f4b with SMTP id b8-20020a256708000000b0065d675e9f4bmr11652109ybc.571.1654273169301; Fri, 03 Jun 2022 09:19:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Paul B Mahol Date: Fri, 3 Jun 2022 18:22:24 +0200 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [FFmpeg-devel] [PATCH] avcodec: add QOI decoder and demuxer and parser and encoder and muxer X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Fri, Jun 3, 2022 at 6:17 PM Andreas Rheinhardt < andreas.rheinhardt@outlook.com> wrote: > Paul B Mahol: > > > > + > > + packet_size = avctx->width * avctx->height * 16LL; > > + if ((ret = ff_alloc_packet(avctx, pkt, packet_size)) < 0) > > + return ret; > > + > > Where does 16 come from? Looking at the code, the factor should be > channels + 1 per pixel (and 14 + 8 byte for header + footer). Or am I > missing something? > Worst case compression. > > - Andreas > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".