[FFmpeg-devel] [PATCH] Increase MOV_TIMESCALE for higher precision

Gyan Doshi ffmpeg at gyani.pro
Wed Mar 24 07:30:35 EET 2021



On 2021-03-24 03:38, Andrey Rikunov wrote:
> ---
>   libavformat/movenc.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/movenc.h b/libavformat/movenc.h
> index cdbc407..8a152c0 100644
> --- a/libavformat/movenc.h
> +++ b/libavformat/movenc.h
> @@ -29,7 +29,7 @@
>   
>   #define MOV_FRAG_INFO_ALLOC_INCREMENT 64
>   #define MOV_INDEX_CLUSTER_SIZE 1024
> -#define MOV_TIMESCALE 1000
> +#define MOV_TIMESCALE 60000

Instead of hardcoding it, add an option to allow the user to set it.

Regards,
Gyan


More information about the ffmpeg-devel mailing list