diff mbox series

[FFmpeg-devel] av_get_frame_filename2 parameter int -> int64_t

Message ID 20240916175857.606-2-shoutplenty@gmail.com
State New
Headers show
Series [FFmpeg-devel] av_get_frame_filename2 parameter int -> int64_t | expand

Checks

Context Check Description
andriy/commit_msg_x86 warning The first line of the commit message must start with a context terminated by a colon and a space, for example "lavu/opt: " or "doc: ".
yinshiyou/commit_msg_loongarch64 warning The first line of the commit message must start with a context terminated by a colon and a space, for example "lavu/opt: " or "doc: ".
andriy/make_x86 fail Make failed

Commit Message

Filip Mašić Sept. 16, 2024, 5:57 p.m. UTC
suggested fix for ticket 11194; see ticket for more info. i haven't been able to test this since i don't have any build tools installed, but decided to submit it since it seems to be a trivial change and easy to test

---
 libavformat/utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/utils.c b/libavformat/utils.c
index e9ded627ad..41acc71949 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -280,7 +280,7 @@  uint64_t ff_parse_ntp_time(uint64_t ntp_ts)
     return (sec * 1000000) + usec;
 }
 
-int av_get_frame_filename2(char *buf, int buf_size, const char *path, int number, int flags)
+int av_get_frame_filename2(char *buf, int buf_size, const char *path, int64_t number, int flags)
 {
     const char *p;
     char *q, buf1[20], c;
@@ -338,7 +338,7 @@  fail:
     return -1;
 }
 
-int av_get_frame_filename(char *buf, int buf_size, const char *path, int number)
+int av_get_frame_filename(char *buf, int buf_size, const char *path, int64_t number)
 {
     return av_get_frame_filename2(buf, buf_size, path, number, 0);
 }