[FFmpeg-devel] [PATCH] avformat/dump: Change precision of stream start offsets

Gyan Doshi ffmpeg at gyani.pro
Mon Apr 21 07:50:52 EEST 2025



On 2025-04-21 01:41 am, softworkz wrote:
> From: softworkz <softworkz at hotmail.com>
>
> Changing this to 6 digits to align with other
> printed times
>
> Signed-off-by: softworkz <softworkz at hotmail.com>
> ---
>      avformat/dump: Change precision of stream start offsets
>      
>      Changing this to 6 digits to align with other printed times
>      
>      Signed-off-by: softworkz softworkz at hotmail.com
>
> Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-72%2Fsoftworkz%2Fsubmit_start_offsets-v1
> Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-72/softworkz/submit_start_offsets-v1
> Pull-Request: https://github.com/ffstaging/FFmpeg/pull/72
>
>   libavformat/dump.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/dump.c b/libavformat/dump.c
> index 8c7db7b275..1bd0424f3d 100644
> --- a/libavformat/dump.c
> +++ b/libavformat/dump.c
> @@ -680,7 +680,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
>   
>       if (st->start_time != AV_NOPTS_VALUE && st->start_time != 0 && st->time_base.den && st->time_base.num) {
>           const double stream_start = av_q2d(st->time_base) * st->start_time;
> -        av_log(NULL, AV_LOG_INFO, ", Start-Time %.3fs", stream_start);
> +        av_log(NULL, AV_LOG_INFO, ", Start-Time %.6fs", stream_start);

The camel case is incongruous with the formatting of the text next To It.

Regards,
Gyan



More information about the ffmpeg-devel mailing list