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 ESMTPS id 72D2447BB8 for ; Wed, 26 Feb 2025 23:10:10 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9842C68CF51; Thu, 27 Feb 2025 01:10:05 +0200 (EET) Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 251E468CC6F for ; Thu, 27 Feb 2025 01:09:59 +0200 (EET) Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-abbdf897503so256423666b.0 for ; Wed, 26 Feb 2025 15:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740611398; x=1741216198; darn=ffmpeg.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=iDb7JTPYEgcN+Yw3WX9AS5TL+1CeQDVk1LrlwU1tpFs=; b=CHWv58SZZZaq7eDVy/njGd5KdnmBLSSTtStsnRN+B+KmBJypAPJNNqX7+rKidJPVyf T8mGL8i1jmt9kq23TfLcyBrAMYjv8yC9hVIo8XaLWsyxab+WSHAvB5vTJFsHLHPyEGxL 1wTNYuRmXU77Em0xQz313NMxxpu6EKmeFpL9aDMLfkufzJHBIpHhgw3PMhfY3uiC2a2W fm7A6BZVwVOkWf34UybIp4Q50k0Me2nc5f3DqCOK3JF65Eu+nPPeONdIF2NSijKCxbBv yOoNdpH4RSX7/O+RJWQeU5TXMTVTR+84/7GHjMFBtAL4Aj1V0YpfL297OkuOrW7ovHUO Bc5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740611398; x=1741216198; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iDb7JTPYEgcN+Yw3WX9AS5TL+1CeQDVk1LrlwU1tpFs=; b=S+GU+RA6fvpqLtn4kJHtkSc7hfoNoAqO0T2J6ZA0gghHmqsb0dYmc3XZfCVKZaBclA txWbe1YhSNACgRW3lJO2P16Ca6ImsXMuspkTahydcgA8lrajW7s74k/ocx9d8l9MYePM FJ+eE9QHTM1uIFZXBElEEveG8tju82ZZOSxweCH81EF4Ae3RGJhSytiAoOgTIaVYDv7L ZJnHQfaGtKndMyeSV9AZCEycvSgPNgRROuKXLGxyt7cXv6+PKT2sdonv0q0SswhCNJhk X0u8ImqHtpv90Uhj05LPq4NXLBzxR0v/+87efxyiLbQ5C8llAcn87/mADGLgrzN1JmBy hesQ== X-Gm-Message-State: AOJu0Yw1MoEcN/fSO1kk4Wp26zFdJVcOu1I/B3zOJCFftilC5B0FsfXX nyW55MWLMTOlpYkwY9XOQ/d3zjKt61R9j/E1WSKK3TUG/4BBys/A/x4tQnFHV8myjIdyrSYghuc hn6mFWWGIfKBjW80yLRdrOTDF4NDbVUTI X-Gm-Gg: ASbGnct9LahLH5VH547NigqVC/eLyjoG09Ffz9VdCalNIlyveZjyj66JFsrwD13Oplt PjbpbYrWTOrknz7hMKs+DUSXuYKMP6yujM+xtUFylZ4exue+9EmLJREC9jZ5QSiQAg4wWrLkIwQ zKpnEQY8PjZReiJdT293Ys6w== X-Google-Smtp-Source: AGHT+IFqgSiKUaLFzpJqwknAIRAy/KdCX93DBWhJJ0r3paD+BwXPsR0fsfUJv6Oo16FQatuy5B5VyUwq/dx4a1tcVdA= X-Received: by 2002:a17:907:a4c7:b0:abc:675:223a with SMTP id a640c23a62f3a-abf0604bb26mr190968666b.12.1740611398125; Wed, 26 Feb 2025 15:09:58 -0800 (PST) MIME-Version: 1.0 References: <20250213212208.29414-1-pkoshevoy@gmail.com> In-Reply-To: From: Pavel Koshevoy Date: Wed, 26 Feb 2025 16:09:21 -0700 X-Gm-Features: AQ5f1JpXkBcb3bwbW-r5g8JNgjbFuQo3uT8xCIsWdyaKf699Fx5MofDJzMdfelA Message-ID: To: ffmpeg-devel@ffmpeg.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [FFmpeg-devel] [PATCH] avformat/mov: (v4) fix get_eia608_packet 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="utf-8" Content-Transfer-Encoding: base64 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: T24gU3VuLCBGZWIgMjMsIDIwMjUgYXQgOTo0N+KAr0FNIFBhdmVsIEtvc2hldm95IDxwa29zaGV2 b3lAZ21haWwuY29tPiB3cm90ZToKCj4KPgo+IE9uIEZyaSwgRmViIDIxLCAyMDI1IGF0IDk6NDni gK9BTSBQYXZlbCBLb3NoZXZveSA8cGtvc2hldm95QGdtYWlsLmNvbT4KPiB3cm90ZToKPgo+PiBJ ZiB0aGVyZSBhcmUgbm8gZnVydGhlciBjb25zdHJ1Y3RpdmUgcmV2aWV3IGNvbW1lbnRzIHRvZGF5 IGFuZCB0b21vcnJvdwo+PiB0aGVuIEkgd2lsbCBjb21taXQgYW5kIHB1c2ggdGhpcyBjaGFuZ2Ug b24gU3VuZGF5IChpZiBJIGRvbid0IGZvcmdldCkuCj4+Cj4+IFBhdmVsLgo+Pgo+Cj4KPiBQdXNo ZWQgaW4gY29tbWl0IDUwMjE3NjQ0MTNhMTM4ZjM0MGJhNDZhOWIxNDUyMTViNzUzNWVhODMKPgo+ IFBhdmVsLgo+Cj4KQ2hlcnJ5LXBpY2tlZCB0byByZWxlYXNlLzQuNCwgNS4wLCA1LjEsIDYuMCwg Ni4xLCA3LjAsIDcuMQoKUGF2ZWwKCg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