It no longer has any users.
Unified · Split
| @@ -624,22 +624,6 @@ void ff_format_set_url(AVFormatContext *s, char *url); · 623 unmodified lines | |||
| 624 | */ | 624 | */ |
| 625 | int ff_match_url_ext(const char *url, const char *extensions); | 625 | int ff_match_url_ext(const char *url, const char *extensions); |
| 626 | 626 | ||
| 627 | /** | ||
| 628 | * Return in 'buf' the path with '%d' replaced by a number. | ||
| 629 | * | ||
| 630 | * Also handles the '%0nd' format where 'n' is the total number | ||
| 631 | * of digits and '%%'. | ||
| 632 | * | ||
| 633 | * @param buf destination buffer | ||
| 634 | * @param buf_size destination buffer size | ||
| 635 | * @param path path with substitution template | ||
| 636 | * @param number the number to substitute | ||
| 637 | * @param flags AV_FRAME_FILENAME_FLAGS_* | ||
| 638 | * @return 0 if OK, -1 on format error | ||
| 639 | */ | ||
| 640 | int ff_get_frame_filename(char *buf, int buf_size, const char *path, | ||
| 641 | int64_t number, int flags); | ||
| 642 | |||
| 643 | /** | 627 | /** |
| 644 | * Return in 'buf' the path with '%d' replaced by a number. | 628 | * Return in 'buf' the path with '%d' replaced by a number. |
| 645 | * | 629 | * |
| @@ -334,7 +334,7 @@ fail: · 333 unmodified lines | |||
| 334 | return AVERROR(EINVAL); | 334 | return AVERROR(EINVAL); |
| 335 | } | 335 | } |
| 336 | 336 | ||
| 337 | int ff_get_frame_filename(char *buf, int buf_size, const char *path, int64_t number, int flags) | 337 | static int get_frame_filename(char *buf, int buf_size, const char *path, int64_t number, int flags) |
| 338 | { | 338 | { |
| 339 | AVBPrint bp; | 339 | AVBPrint bp; |
| 340 | av_bprint_init_for_buffer(&bp, buf, buf_size); | 340 | 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 · 2 unmodified lines | |||
| 343 | 343 | ||
| 344 | int av_get_frame_filename2(char *buf, int buf_size, const char *path, int number, int flags) | 344 | int av_get_frame_filename2(char *buf, int buf_size, const char *path, int number, int flags) |
| 345 | { | 345 | { |
| 346 | return ff_get_frame_filename(buf, buf_size, path, number, flags); | 346 | return get_frame_filename(buf, buf_size, path, number, flags); |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | int av_get_frame_filename(char *buf, int buf_size, const char *path, int number) | 349 | int av_get_frame_filename(char *buf, int buf_size, const char *path, int number) |
| 350 | { | 350 | { |
| 351 | return ff_get_frame_filename(buf, buf_size, path, number, 0); | 351 | return get_frame_filename(buf, buf_size, path, number, 0); |
| 352 | } | 352 | } |
| 353 | 353 | ||
| 354 | void av_url_split(char *proto, int proto_size, | 354 | void av_url_split(char *proto, int proto_size, |