Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Nicolas Gaullier via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: Nicolas Gaullier <nicolas.gaullier@cji.paris>
Subject: [FFmpeg-devel] [PATCH] mov: fix bit_rate calculation for fragmented MP4
Date: Thu, 22 Jan 2026 10:06:40 +0100
Message-ID: <c2c4c538-0115-4fdf-8b2e-0bbd2d4edf88@cji.paris> (raw)
In-Reply-To: <CACt+UE5Cktafy1yLDrMqMN8a-K7L6FG29CrC4b+wYz_-G6yn0g@mail.gmail.com>

On 1/21/26 13:39, Nariman Sayed via ffmpeg-devel wrote:
> Hello FFmpeg developers,
>
> This patch fixes the calculation of bit_rate for fragmented MP4 files,
> ensuring
> that the reported bit_rate covers the entire fragmented file instead of only
> the first fragment.
>
> This addresses GitHub issue: https://github.com/FFmpeg/FFmpeg/issues/20450
>
> Changes include modifications in:
> - libavformat/mov.c
> - libavformat/isom.h
>
> Tested using ffprobe on sample fragmented MP4 files (12.mp4 and 21.mp4), and
> the bit_rate is now calculated correctly over the whole file.
>
> Patch attached.
>
> Best regards,
>   Nariman Sayed

It seems your code editor has re-formatted the whole file which is not 
acceptable. Code style must be preserved and the diff must show only 
modified lines.

Nicolas

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

      reply	other threads:[~2026-01-22  9:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-21 12:39 Nariman Sayed via ffmpeg-devel
2026-01-22  9:06 ` Nicolas Gaullier via ffmpeg-devel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c2c4c538-0115-4fdf-8b2e-0bbd2d4edf88@cji.paris \
    --to=ffmpeg-devel@ffmpeg.org \
    --cc=nicolas.gaullier@cji.paris \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git