[FFmpeg-user] Reporting GCC 7.3.0 compiler-warnings on FFmpeg git (955fa23)
Reino Wijnsma
rwijnsma at xs4all.nl
Thu Apr 19 14:22:38 EEST 2018
On 19-4-2018 12:13, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
>> libavformat/hlsenc.c: In function 'get_default_pattern_localtime_fmt':
>> libavformat/hlsenc.c:1676:63: warning: unknown conversion type character 's' in format
>> return (HAVE_LIBC_MSVCRT || !strftime(b, sizeof(b), "%s", p)
> What does "grep HAVE_LIBC_MSVCRT config.h" show for you?
#define HAVE_LIBC_MSVCRT 0
>> libavutil/hwcontext_d3d11va.c: In function 'd3d11va_transfer_data':
>> libavutil/hwcontext_d3d11va.c:413:49: warning: passing argument 3 of 'av_image_copy' from incompatible pointer type
> Does changing the third argument of av_image_copy() in libavutil/imgutils.h
> into "const uint8_t * const src_data[4]" silence anything?
I take it you meant this one?
diff --git a/libavutil/imgutils.h b/libavutil/imgutils.h
index 5b790ec..9530c6e 100644
--- a/libavutil/imgutils.h
+++ b/libavutil/imgutils.h
@@ -107,7 +107,7 @@ int av_image_alloc(uint8_t *pointers[4], int linesizes[4],
* @param src_linesize linesize for the image plane in src
*/
void av_image_copy_plane(uint8_t *dst, int dst_linesize,
- const uint8_t *src, int src_linesize,
+ const uint8_t *src_data[4], int src_linesize,
int bytewidth, int height);
/**
Result: same warning messages as before.
> (Only hwcontext_d3d11va.o testing required, breaks imgutils.o compilation)
I'm still rather new to all of this and normally I would always run make on FFmpeg. Can you tell me how I can compile just this one file?
-- Reino
More information about the ffmpeg-user
mailing list