aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2025-08-04 10:21:16 +0200
committerMarton Balint <cus@passwd.hu>2025-08-04 18:03:29 +0000
commita84d060aa185e74591bbc8cc7869123c5aeb088a (patch)
treeb102b5355f17ec35241ec85e7a0cccecf6221799
parentc31df899d9e7ac5f8a4ecf4bf681c47c4691c906 (diff)
downloadffmpeg-a84d060aa185e74591bbc8cc7869123c5aeb088a.tar.gz
avformat/internal: retire ff_get_frame_filename
It no longer has any users. Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--libavformat/internal.h16
-rw-r--r--libavformat/utils.c6
2 files changed, 3 insertions, 19 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 3dd1fb1a91..0dfbf02ca0 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -631,22 +631,6 @@ int ff_match_url_ext(const char *url, const char *extensions);
* of digits and '%%'.
*
* @param buf destination buffer
- * @param buf_size destination buffer size
- * @param path path with substitution template
- * @param number the number to substitute
- * @param flags AV_FRAME_FILENAME_FLAGS_*
- * @return 0 if OK, -1 on format error
- */
-int ff_get_frame_filename(char *buf, int buf_size, const char *path,
- int64_t number, int flags);
-
-/**
- * Return in 'buf' the path with '%d' replaced by a number.
- *
- * Also handles the '%0nd' format where 'n' is the total number
- * of digits and '%%'.
- *
- * @param buf destination buffer
* @param path path with substitution template
* @param number the number to substitute
* @param flags AV_FRAME_FILENAME_FLAGS_*
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 336fb556f3..8a249ad85a 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -334,7 +334,7 @@ fail:
return AVERROR(EINVAL);
}
-int ff_get_frame_filename(char *buf, int buf_size, const char *path, int64_t number, int flags)
+static int get_frame_filename(char *buf, int buf_size, const char *path, int64_t number, int flags)
{
AVBPrint bp;
av_bprint_init_for_buffer(&bp, buf, buf_size);
@@ -343,12 +343,12 @@ int ff_get_frame_filename(char *buf, int buf_size, const char *path, int64_t num
int av_get_frame_filename2(char *buf, int buf_size, const char *path, int number, int flags)
{
- return ff_get_frame_filename(buf, buf_size, path, number, flags);
+ return get_frame_filename(buf, buf_size, path, number, flags);
}
int av_get_frame_filename(char *buf, int buf_size, const char *path, int number)
{
- return ff_get_frame_filename(buf, buf_size, path, number, 0);
+ return get_frame_filename(buf, buf_size, path, number, 0);
}
void av_url_split(char *proto, int proto_size,