* [FFmpeg-devel] [PATCH] doc/muxers.texi: Don't use confusing variable name
@ 2024-04-12 22:38 Andreas Rheinhardt
2024-04-13 8:56 ` Stefano Sabatini
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Rheinhardt @ 2024-04-12 22:38 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
reserve_index_space is a size, not an index.
Also refer to the variable in the description.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
doc/muxers.texi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/muxers.texi b/doc/muxers.texi
index 4b30970b78..489f22288b 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -2816,14 +2816,14 @@ ffmpeg -i sample_left_right_clip.mpg -an -c:v libvpx -metadata stereo_mode=left_
@subsection Options
@table @option
-@item reserve_index_space @var{index}
+@item reserve_index_space @var{size}
By default, this muxer writes the index for seeking (called cues in Matroska
terms) at the end of the file, because it cannot know in advance how much space
to leave for the index at the beginning of the file. However for some use cases
-- e.g. streaming where seeking is possible but slow -- it is useful to put the
index at the beginning of the file.
-If this option is set to a non-zero value, the muxer will reserve a given amount
+If this option is set to a non-zero value, the muxer will reserve @var{size} bytes
of space in the file header and then try to write the cues there when the muxing
finishes. If the reserved space does not suffice, no Cues will be written, the
file will be finalized and writing the trailer will return an error.
--
2.40.1
_______________________________________________
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".
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [FFmpeg-devel] [PATCH] doc/muxers.texi: Don't use confusing variable name
2024-04-12 22:38 [FFmpeg-devel] [PATCH] doc/muxers.texi: Don't use confusing variable name Andreas Rheinhardt
@ 2024-04-13 8:56 ` Stefano Sabatini
0 siblings, 0 replies; 2+ messages in thread
From: Stefano Sabatini @ 2024-04-13 8:56 UTC (permalink / raw)
To: FFmpeg development discussions and patches; +Cc: Andreas Rheinhardt
On date Saturday 2024-04-13 00:38:49 +0200, Andreas Rheinhardt wrote:
> reserve_index_space is a size, not an index.
> Also refer to the variable in the description.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
> doc/muxers.texi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/doc/muxers.texi b/doc/muxers.texi
> index 4b30970b78..489f22288b 100644
> --- a/doc/muxers.texi
> +++ b/doc/muxers.texi
> @@ -2816,14 +2816,14 @@ ffmpeg -i sample_left_right_clip.mpg -an -c:v libvpx -metadata stereo_mode=left_
>
> @subsection Options
> @table @option
> -@item reserve_index_space @var{index}
> +@item reserve_index_space @var{size}
> By default, this muxer writes the index for seeking (called cues in Matroska
> terms) at the end of the file, because it cannot know in advance how much space
> to leave for the index at the beginning of the file. However for some use cases
> -- e.g. streaming where seeking is possible but slow -- it is useful to put the
> index at the beginning of the file.
>
> -If this option is set to a non-zero value, the muxer will reserve a given amount
> +If this option is set to a non-zero value, the muxer will reserve @var{size} bytes
> of space in the file header and then try to write the cues there when the muxing
> finishes. If the reserved space does not suffice, no Cues will be written, the
> file will be finalized and writing the trailer will return an error.
This is more correct, thanks.
_______________________________________________
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".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-13 8:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-12 22:38 [FFmpeg-devel] [PATCH] doc/muxers.texi: Don't use confusing variable name Andreas Rheinhardt
2024-04-13 8:56 ` Stefano Sabatini
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