diff mbox

[FFmpeg-devel,v1] lavf/hlsenc: fix one warning: unused variable 'filename' [-Wunused-variable]

Message ID 20190819014229.24275-1-lance.lmwang@gmail.com
State Accepted
Commit eccb94c3babcc93484d409b1d0fa059f1a2b7645
Headers show

Commit Message

Lance Wang Aug. 19, 2019, 1:42 a.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Liu Steven Aug. 19, 2019, 3:14 a.m. UTC | #1
> 在 2019年8月19日,上午9:42,lance.lmwang@gmail.com 写道:
> 
> From: Limin Wang <lance.lmwang@gmail.com>
> 
> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
> ---
> libavformat/hlsenc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
> index f6f9c8161d..149b2a3bd0 100644
> --- a/libavformat/hlsenc.c
> +++ b/libavformat/hlsenc.c
> @@ -1571,7 +1571,7 @@ static int hls_start(AVFormatContext *s, VariantStream *vs)
>     AVDictionary *options = NULL;
>     const char *proto = NULL;
>     int use_temp_file = 0;
> -    char *filename, iv_string[KEYSIZE*2 + 1];
> +    char iv_string[KEYSIZE*2 + 1];
>     int err = 0;
> 
>     if (c->flags & HLS_SINGLE_FILE) {
> -- 
> 2.21.0
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".


LGTM


Thanks
Steven
Liu Steven Aug. 20, 2019, 1:40 a.m. UTC | #2
> 在 2019年8月19日,上午11:14,Liu Steven <lq@chinaffmpeg.org> 写道:
> 
> 
> 
>> 在 2019年8月19日,上午9:42,lance.lmwang@gmail.com 写道:
>> 
>> From: Limin Wang <lance.lmwang@gmail.com>
>> 
>> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
>> ---
>> libavformat/hlsenc.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
>> index f6f9c8161d..149b2a3bd0 100644
>> --- a/libavformat/hlsenc.c
>> +++ b/libavformat/hlsenc.c
>> @@ -1571,7 +1571,7 @@ static int hls_start(AVFormatContext *s, VariantStream *vs)
>>    AVDictionary *options = NULL;
>>    const char *proto = NULL;
>>    int use_temp_file = 0;
>> -    char *filename, iv_string[KEYSIZE*2 + 1];
>> +    char iv_string[KEYSIZE*2 + 1];
>>    int err = 0;
>> 
>>    if (c->flags & HLS_SINGLE_FILE) {
>> -- 
>> 2.21.0
>> 
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
> 
> 
> LGTM
Applied

> 
> 
> Thanks
> Steven
diff mbox

Patch

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index f6f9c8161d..149b2a3bd0 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1571,7 +1571,7 @@  static int hls_start(AVFormatContext *s, VariantStream *vs)
     AVDictionary *options = NULL;
     const char *proto = NULL;
     int use_temp_file = 0;
-    char *filename, iv_string[KEYSIZE*2 + 1];
+    char iv_string[KEYSIZE*2 + 1];
     int err = 0;
 
     if (c->flags & HLS_SINGLE_FILE) {