Re: [FFmpeg-devel] [PATCH] lavc/vvc_parser: Fix integer overflow calculating framerate

2024-04-09 Thread Nuo Mi
On Tue, Apr 9, 2024 at 3:04 AM James Almer wrote: > On 4/8/2024 3:20 PM, Frank Plowman wrote: > > num_units_in_tick and time_scale are both 32-bit unsigned integers. > > Storing them as ints was causing overflows. > > > > Signed-off-by: Frank Plowman > > --- > > libavcodec/vvc_parser.c | 4

Re: [FFmpeg-devel] [PATCH] lavc/vvc_parser: Fix integer overflow calculating framerate

2024-04-08 Thread James Almer
On 4/8/2024 3:20 PM, Frank Plowman wrote: num_units_in_tick and time_scale are both 32-bit unsigned integers. Storing them as ints was causing overflows. Signed-off-by: Frank Plowman --- libavcodec/vvc_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[FFmpeg-devel] [PATCH] lavc/vvc_parser: Fix integer overflow calculating framerate

2024-04-08 Thread Frank Plowman
num_units_in_tick and time_scale are both 32-bit unsigned integers. Storing them as ints was causing overflows. Signed-off-by: Frank Plowman --- libavcodec/vvc_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/vvc_parser.c b/libavcodec/vvc_parser.c