[FFmpeg-cvslog] avformat/hls: Remove redundant resetting of pointer

Andreas Rheinhardt git at videolan.org
Thu May 21 00:21:53 EEST 2020


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Tue May 19 12:35:59 2020 +0200| [9f6b738896196ffb911f75719d00b63ebc7ea217] | committer: Andreas Rheinhardt

avformat/hls: Remove redundant resetting of pointer

ff_id3v2_free_extra_meta() takes a ID3V2ExtraMeta ** so that it can
already reset the pointer.

Reviewed-by: Jun Zhao <mypopy at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9f6b738896196ffb911f75719d00b63ebc7ea217
---

 libavformat/hls.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index fc45719d1c..cd6c91214d 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1969,7 +1969,6 @@ static int hls_read_header(AVFormatContext *s)
             avformat_queue_attached_pictures(pls->ctx);
             ff_id3v2_parse_priv(pls->ctx, &pls->id3_deferred_extra);
             ff_id3v2_free_extra_meta(&pls->id3_deferred_extra);
-            pls->id3_deferred_extra = NULL;
         }
 
         if (pls->is_id3_timestamped == -1)



More information about the ffmpeg-cvslog mailing list