[FFmpeg-devel] [PATCH v4 1/2] avformat/hlsenc: Modularized playlist creation to allow reuse

Michael Niedermayer michael at niedermayer.cc
Fri Nov 24 22:01:32 EET 2017


On Fri, Nov 24, 2017 at 10:57:45AM +0530, Karthick J wrote:
> ---
>  libavformat/Makefile      |   2 +-
>  libavformat/hlsenc.c      | 115 +++++++--------------------------------
>  libavformat/hlsplaylist.c | 136 ++++++++++++++++++++++++++++++++++++++++++++++
>  libavformat/hlsplaylist.h |  51 +++++++++++++++++
>  4 files changed, 209 insertions(+), 95 deletions(-)
>  create mode 100644 libavformat/hlsplaylist.c
>  create mode 100644 libavformat/hlsplaylist.h

breaks build with mingw64

src/libavformat/hlsplaylist.c: In function ‘ff_hls_write_file_entry’:
src/libavformat/hlsplaylist.c:109:9: error: implicit declaration of function ‘localtime_r’ [-Werror=implicit-function-declaration]
         tm = localtime_r(&tt, &tmpbuf);
         ^
src/libavformat/hlsplaylist.c:109:12: warning: assignment makes pointer from integer without a cast [enabled by default]
         tm = localtime_r(&tt, &tmpbuf);
            ^
src/libavformat/hlsplaylist.c:113:13: error: implicit declaration of function ‘gmtime_r’ [-Werror=implicit-function-declaration]
             tm = gmtime_r(&tt, &tmpbuf);
             ^
src/libavformat/hlsplaylist.c:113:16: warning: assignment makes pointer from integer without a cast [enabled by default]
             tm = gmtime_r(&tt, &tmpbuf);
                ^
cc1: some warnings being treated as errors

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171124/9c95dbe8/attachment.sig>


More information about the ffmpeg-devel mailing list