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

Jeyapal, Karthick kjeyapal at akamai.com
Sat Nov 25 05:49:21 EET 2017


Oops. Sorry about that. Have sent a new patch v5 that fixes this.

Regards,
Karthick

On 11/25/17, 1:31 AM, "Michael Niedermayer" <michael at niedermayer.cc> wrote:

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




More information about the ffmpeg-devel mailing list