Message ID | 20221125013046.40904-12-epirat07@gmail.com |
---|---|
State | Accepted |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:999a:b0:a4:2148:650a with SMTP id ve26csp4948660pzb; Thu, 24 Nov 2022 17:32:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf71LAR6SR2nhuBn3yqtRRB9R0U/jw0MDdH2LatEr9RymBnR3brMdDLj0bD9Wx8WHskmqdtx X-Received: by 2002:a17:906:707:b0:7ba:1ec1:ebfc with SMTP id y7-20020a170906070700b007ba1ec1ebfcmr7753804ejb.768.1669339924465; Thu, 24 Nov 2022 17:32:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669339924; cv=none; d=google.com; s=arc-20160816; b=WP4e22/LKb5dpkY1rkAT6sKedu1SHY1I+JRyte83dug+X37WWDRiEad0bgedGecS4Z BnMvUWn0gnTO6wORhqN97xrhXOLLm017JNyw3FTwH8iCUZnDMVYyFbZ+xbJxKT/h0/P+ +B9nt8blFHtC+dpkgnolSAL+VvHMmoGh19+A5sSj/zvZ/BU8h6MAC85UdYZ20YIgpY03 NJ/5NCVtuwEBvE7wr5BJenqDooysyckI0FmN4mqmf8WouzXdx3gBUPzYeLBsF6zJsbFH WhjFKxTllxWsxBhG6n7zJU4CG2KbCytGLW8VQj/BsfMj+flWI+P5iaf0OjghN+QOsHrh NJAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=Tn/6rtlj5rcAaCfd4Osdm+S6snlRVkK56GYx8XyIOko=; b=ys9SiCe02Ky0a3grZzif8NRAi/5vXbsjfCfsi2avGTBDHDla2JkLUSfwneUuEA2otd hDqSwd5TevPF90OI5Vm+ZJlwumis0pl2GrwlO1h3hoa+vPNhfWbmjf+STw+vggu3X6EV 7wbdc+AGt/gqUjrPcxTwuhw39I9JOPt+YH1+1EbriqjFKRInFNk/A4kgC3mgppOilHkS 0EbSOu0acx8e39FJoTjFEsWF7c4HJQQGUv9qbIOQ+GZDhG++QjvCOhPPMItPBDEq847n zhUS7BIKe5URPaVUhDqeDU5I67gzmT/CRbxP1PMPaa8I3hgh7fkp/lQ21mP4hPCzSeEt ZZKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=hiC2kSm6; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id ne39-20020a1709077ba700b007b2a6aaff06si1291781ejc.50.2022.11.24.17.31.58; Thu, 24 Nov 2022 17:32:04 -0800 (PST) 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 header.s=20210112 header.b=hiC2kSm6; 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=QUARANTINE 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 708B068BB84; Fri, 25 Nov 2022 03:31:06 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3089168BACE for <ffmpeg-devel@ffmpeg.org>; Fri, 25 Nov 2022 03:31:00 +0200 (EET) Received: by mail-ed1-f48.google.com with SMTP id s5so4459327edc.12 for <ffmpeg-devel@ffmpeg.org>; Thu, 24 Nov 2022 17:31:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cF2DCM2JRagVDlYLtkRXz5cNc+IyCzd/BzHkzx5Fbco=; b=hiC2kSm6A9t4bdJ32HZD4INZTJf+t4J1meuLHiWeAQcUj8B8wxxH8Dsf5/HlvDORSd 533piKKNUAyrDn4L2tAqrf+1WhLeh1tKW3fg3WRUROW8Oz8HWAFl/Kq+7pItRsZPeM+s 0s9wNmL+0IQAXSUZpQmad5eOJgpxcXUWXsXKnAiCGHM1kABp91KrtS7BV34ndnTOxF/L Ffsh631xXq+I15IG/T/sqEwFfoyaJCRh1GNFUNmMTXQaqSLj1Q/UrPW0U0+NeST/h6vT iBhGhEbMtaSzMD2jtplPICHbnifcNZtTfj0ZiuFDsoY5tzYkiWT7ZC2iLksACMMBjxbA SaYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cF2DCM2JRagVDlYLtkRXz5cNc+IyCzd/BzHkzx5Fbco=; b=N3W8xEz30G+4JjwLEZEAw1Mr80/XG8z0v2k7unIGQsjFop2SWCId3v5XKHVfavpOJC 45eIfnIn911EgyeCXSR/tfIGKE3RPFTK6+ogdmHtaM2KCK9qqIloI3gWjIWI8nwAwfjj 2VToBBFsiPK76spmuM6mjUr0njqtBV9Yj8O+1UFgTAdW6FXAk4/6ggoV++gixdyVmS9X hnqm48VtBraDbn5v4J+9Ga/q0fH7QshOahFf2p6RWQBGn+KtuGEKVWkRSHElBLNdqobj 5rO6ikdrALWKlQH0dkyxkwykceHvkHi4+8OYN7NR4Vw6GoX2v5K3b7527Mnu0xJ0xUEM jmHw== X-Gm-Message-State: ANoB5pk7+sh2haAwyZpWbOOGDgNWlaXZZVH5s0Db4tDIlnTBk9KKK7TS GjTSIhkdGMh6/TFlz22llD/OkWb4Ajo= X-Received: by 2002:a05:6402:1a:b0:467:30ad:c4ca with SMTP id d26-20020a056402001a00b0046730adc4camr32840736edu.285.1669339859894; Thu, 24 Nov 2022 17:30:59 -0800 (PST) Received: from MBP-von-Marvin.citadel.scalie.me (84-112-104-25.cable.dynamic.surfer.at. [84.112.104.25]) by smtp.gmail.com with ESMTPSA id jo9-20020a170906f6c900b0078b1ff41f05sm1011498ejb.43.2022.11.24.17.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 17:30:59 -0800 (PST) From: Marvin Scholz <epirat07@gmail.com> To: ffmpeg-devel@ffmpeg.org Date: Fri, 25 Nov 2022 02:30:26 +0100 Message-Id: <20221125013046.40904-12-epirat07@gmail.com> X-Mailer: git-send-email 2.37.0 (Apple Git-136) In-Reply-To: <20221125013046.40904-1-epirat07@gmail.com> References: <20221125013046.40904-1-epirat07@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 11/31] avcodec/avpacket: use av_dict_iterate X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Marvin Scholz <epirat07@gmail.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: eLV6th9CR12B |
Series |
Use av_dict_iterate where approproate
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index bcbc4166cb..5fef65e97a 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -316,7 +316,7 @@ uint8_t *av_packet_pack_dictionary(AVDictionary *dict, size_t *size) const AVDictionaryEntry *t = NULL; size_t total_length = 0; - while ((t = av_dict_get(dict, "", t, AV_DICT_IGNORE_SUFFIX))) { + while ((t = av_dict_iterate(dict, t))) { for (int i = 0; i < 2; i++) { const char *str = i ? t->value : t->key; const size_t len = strlen(str) + 1;