diff options
author | Michael Witten <mfwitten@gmail.com> | 2021-08-10 16:25:00 +0000 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-12 04:43:31 +0200 |
commit | f040c1ec4e8020f250d4f9ff966607cb6e6b9811 (patch) | |
tree | a351212999244ae32a38c1ac59a1907166e1a7e3 /libavformat/file.c | |
parent | c3ef9e027769b8fb272ff2794b3e84c98bddea7d (diff) | |
download | ffmpeg-f040c1ec4e8020f250d4f9ff966607cb6e6b9811.tar.gz |
libavformat/file.c: 'file_delete()' and 'file_move()' require 'CONFIG_FILE_PROTOCOL'
This quashes 2 warnings when the 'file' protocol is not enabled.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/file.c')
-rw-r--r-- | libavformat/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/file.c b/libavformat/file.c index 8303436be0..9c23f680cd 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -167,6 +167,8 @@ static int file_check(URLContext *h, int mask) return ret; } +#if CONFIG_FILE_PROTOCOL + static int file_delete(URLContext *h) { #if HAVE_UNISTD_H @@ -203,8 +205,6 @@ static int file_move(URLContext *h_src, URLContext *h_dst) return 0; } -#if CONFIG_FILE_PROTOCOL - static int file_open(URLContext *h, const char *filename, int flags) { FileContext *c = h->priv_data; |