From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org>
Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100])
	by master.gitmailbox.com (Postfix) with ESMTPS id 271804BF48
	for <ffmpegdev@gitmailbox.com>; Mon, 31 Mar 2025 20:38:20 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5C17A687CF2;
	Mon, 31 Mar 2025 23:38:16 +0300 (EEST)
Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com
 [209.85.221.45])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 86249687CCB
 for <ffmpeg-devel@ffmpeg.org>; Mon, 31 Mar 2025 23:38:10 +0300 (EEST)
Received: by mail-wr1-f45.google.com with SMTP id
 ffacd0b85a97d-39c0dfba946so1858673f8f.3
 for <ffmpeg-devel@ffmpeg.org>; Mon, 31 Mar 2025 13:38:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1743453490; x=1744058290; darn=ffmpeg.org;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=KFq88rUTAnfiXjcAiNoi8vApag1pg7VIBhV9tUfOqss=;
 b=buROgZlAQ7BcL5RWWTNcYYxYI+X7g7ZEEFRT4DB/0GPtDVca7AvuL0DW6cchv+JzLs
 H2C/OrwbbYit/sSGjpSCEVxk9bqwqUNJVdHvx5+vuDTlPBjTlkQuOrMZ0BazSuWYj+KY
 y2zLq52FKKPF9fREZVCqFsCEf2peKk+6UcFiqjK2qeG4uySA1tWYO9aKbi4ds01IyLrg
 Fi8mps4OJBqfn1nbhK5YiMHOPELHSZIlVOI92OWLERPUqsENsDNpO5wSdYX+9tbIiWMa
 RRl5iswlRKLKYs0FcXa4jpZGD7RXQhUgG0X/AfZI/FBDeu5Qu9HAJH9OLMPZKce7g3lj
 rysA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1743453490; x=1744058290;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=KFq88rUTAnfiXjcAiNoi8vApag1pg7VIBhV9tUfOqss=;
 b=bi7jy472EUAdCLTAmub99qziTP1vUdYVpYdjVGPspIuNnojK0Kt92hBrQeZ+w/b8Fu
 T58hYJglSPyI9DTJ3B0b+QHTvVSqf0h0t/P2toOkaNklzaovyXM3ee4vk+CuCPIXdQNu
 PtVI59/VBr0BZYIKpSpDllqJAKSco9nl2/kYTVqjB+FeMLGzvOW9yXYpMshkHL5RXdQu
 hUpHsX6fnGnxqX2o2BMqn6cd6cNTy8/MdrKG67E4ABWVeL+uM4jpZOQKDIWF8UbPoL/I
 FjagP3pylt2bgCqtGFKEQ2qRI9sSDGps2qkTGsivncEmgxqOq7hmnOuJ6/4cNd2T04yO
 zoMQ==
X-Gm-Message-State: AOJu0YyadkAy+l+RVXXYwvePXjG8uzi4UlNNeuPDDAGxyK4DV5kd3hDG
 Jgmsiryj6inRHPvQsamZA3UjsIKx7SQagL0tMuV/i8ite1HuxAhIkJM+YQ==
X-Gm-Gg: ASbGncvXcEMgOsgTelruYqNkis0MQDOr0twxY1yYkALfSUXPHHAeDtvcwd8nPMUtWq8
 WXpPUpph8ngR/6aguYD44zns6/xo9cgenLDaWsAWWDRjDHwgTOF/wkUyHOkaYiNZ1Hlh2FBpkjQ
 84s1mBkCCihwP2oP0bb9J6jxvOjXVyTHxGr3PUpgYbGkT/ZKhEPQ8CGoeIn4KFvYOsvquNizzZK
 MD+5G6b0HMlEhJpPvkdMAjz7/C0fubJ8YetJ8qv22lScHVzOWod5uIrySOXGFpcp9ZDaeNriuzL
 1ErU6oFJ/wC3v5shJv02b+KpLWfLUh3et01QfGHmTg2oLiWrEVAr0oUJzEvUoO8tRsP8YRF5y0L
 jOnsMZfc+JcRD96ElcW6buRnCg9PfTYywfAMEhV/AAUiwtS7cvkNcX2hCSQ==
X-Google-Smtp-Source: AGHT+IE+/L6NY1fIIuVPcynbzEKP99XLuqjBoFNEDKbYM+Qn/w5zE4aOLBfVTCxuSGoMkNng4kt2aQ==
X-Received: by 2002:a05:6000:188b:b0:391:20ef:62d6 with SMTP id
 ffacd0b85a97d-39c120cb835mr7568922f8f.11.1743453489630; 
 Mon, 31 Mar 2025 13:38:09 -0700 (PDT)
Received: from [192.168.178.143]
 (p200300cccf1b5100e8565387fdd192f0.dip0.t-ipconnect.de.
 [2003:cc:cf1b:5100:e856:5387:fdd1:92f0])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-39c0b79e311sm12289393f8f.78.2025.03.31.13.38.08
 for <ffmpeg-devel@ffmpeg.org>
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 31 Mar 2025 13:38:08 -0700 (PDT)
From: Marvin Scholz <epirat07@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Date: Mon, 31 Mar 2025 22:38:07 +0200
X-Mailer: MailMate Trial (2.0r6222)
Message-ID: <ECD6F47E-ABF4-4150-861F-F10FE1A940FE@gmail.com>
In-Reply-To: <D8LNDL121AO8.SYT0MJAEHH06@gmail.com>
References: <D8LNDL121AO8.SYT0MJAEHH06@gmail.com>
MIME-Version: 1.0
Subject: Re: [FFmpeg-devel] [PATCH] rtpdec_mpeg4: Add fmtp parsing of
 bitrate value
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>
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>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/ECD6F47E-ABF4-4150-861F-F10FE1A940FE@gmail.com/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>



On 26 Sep 2022, at 21:24, Marvin Scholz wrote:

> According to RFC 6416 the audio stream sender can pass the data rate
> for the audio bitstream as "bitrate=" media format parameter.
>
> Signed-off-by: Marvin Scholz <epirat07@gmail.com>

If there are no comments / objections I intend to push this
in a few days (with corrected authorship).

> ---
>  libavformat/rtpdec_mpeg4.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c
> index 6531632b2d..06c96b38cb 100644
> --- a/libavformat/rtpdec_mpeg4.c
> +++ b/libavformat/rtpdec_mpeg4.c
> @@ -38,6 +38,7 @@
>
>  /** Structure listing useful vars to parse RTP packet payload */
>  struct PayloadContext {
> +    int bitrate;
>      int sizelength;
>      int indexlength;
>      int indexdeltalength;
> @@ -83,6 +84,9 @@ typedef struct AttrNameMap {
>  #define ATTR_NAME_TYPE_INT 0
>  #define ATTR_NAME_TYPE_STR 1
>  static const AttrNameMap attr_names[] = {
> +    { "bitrate",       ATTR_NAME_TYPE_INT,
> +      offsetof(PayloadContext, bitrate),
> +      {0, INT32_MAX} },
>      { "SizeLength",       ATTR_NAME_TYPE_INT,
>        offsetof(PayloadContext, sizelength),
>        {0, 32} }, // SizeLength number of bits used to encode AU-size integer value
> @@ -332,6 +336,9 @@ static int parse_fmtp(AVFormatContext *s,
>                  }
>              }
>          }
> +        if (!strcmp(attr, "bitrate")) {
> +            par->bit_rate = data->bitrate;
> +        }
>      }
>      return 0;
>  }
>
> base-commit: 0ce405afb8df221b3a975a30b5c229449c8ed7da
> -- 
> 2.39.5 (Apple Git-154)
_______________________________________________
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".