Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: add hls encrypt options

2017-04-06 Thread Steven Liu
2017-04-06 22:07 GMT+08:00 Moritz Barsnick : > On Thu, Apr 06, 2017 at 15:47:58 +0200, Moritz Barsnick wrote: > > On Wed, Apr 05, 2017 at 22:04:01 +0800, Steven Liu wrote: > > > +{"hls_enc", "AES128 encryption support", > OFFSET(encrypt), AV_OPT_TYPE_INT,{.i64 = 0}, 0, 1, E}, >

Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: add hls encrypt options

2017-04-06 Thread Steven Liu
2017-04-06 22:07 GMT+08:00 Moritz Barsnick : > On Thu, Apr 06, 2017 at 15:47:58 +0200, Moritz Barsnick wrote: > > On Wed, Apr 05, 2017 at 22:04:01 +0800, Steven Liu wrote: > > > +{"hls_enc", "AES128 encryption support", > OFFSET(encrypt), AV_OPT_TYPE_INT,{.i64 = 0}, 0, 1, E}, >

Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: add hls encrypt options

2017-04-06 Thread Moritz Barsnick
On Thu, Apr 06, 2017 at 15:47:58 +0200, Moritz Barsnick wrote: > On Wed, Apr 05, 2017 at 22:04:01 +0800, Steven Liu wrote: > > +{"hls_enc", "AES128 encryption support", > > OFFSET(encrypt), AV_OPT_TYPE_INT,{.i64 = 0}, 0, 1, E}, Furthermore, this looks like a boolea

Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: add hls encrypt options

2017-04-06 Thread Moritz Barsnick
On Wed, Apr 05, 2017 at 22:04:01 +0800, Steven Liu wrote: > +{"hls_enc", "AES128 encryption support", > OFFSET(encrypt), AV_OPT_TYPE_INT,{.i64 = 0}, 0, 1, E}, > +{"hls_enc_key", "use the specified hex-coded 16byte key to encrypt the > segments", OFFSET(key),

[FFmpeg-devel] [PATCH] avformat/hlsenc: add hls encrypt options

2017-04-05 Thread Steven Liu
add hls encrypt options looks like libav's libavformat/hlsenc.c Signed-off-by: Steven Liu --- libavformat/hlsenc.c | 118 --- 1 file changed, 113 insertions(+), 5 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index e6c378df