History

avformat/internal: retire ff_get_frame_filename

It no longer has any users.

Marton Balint committed 1 year ago

Commit a84d0601 parent c31df892 files · +3 −19Browse files

Unified · Split

2 files
  1. libavformat/internal.h +0 −16
  2. libavformat/utils.c +3 −3
libavformat/internal.h+0−16
@@ -624,22 +624,6 @@ void ff_format_set_url(AVFormatContext *s, char *url); · 623 unmodified lines
624 */624 */
625int ff_match_url_ext(const char *url, const char *extensions);625int 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 */
640int 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 *
libavformat/utils.c+3−3
@@ -334,7 +334,7 @@ fail: · 333 unmodified lines
334 return AVERROR(EINVAL);334 return AVERROR(EINVAL);
335}335}
336 336
337int ff_get_frame_filename(char *buf, int buf_size, const char *path, int64_t number, int flags)337static 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
344int av_get_frame_filename2(char *buf, int buf_size, const char *path, int number, int flags)344int 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
349int av_get_frame_filename(char *buf, int buf_size, const char *path, int number)349int 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
354void av_url_split(char *proto, int proto_size,354void av_url_split(char *proto, int proto_size,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t