Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@gmail.com>
---
Making sure that it's safe to call this demuxer's read_close function
upon read_header failure was of course the initial rationale behind this
patchset.

 libavformat/dashdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 4f87ef981b..311a19e425 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -2047,6 +2047,7 @@ static int copy_init_section(struct representation 
*rep_dest, struct representat
     return 0;
 }
 
+static int dash_close(AVFormatContext *s);
 
 static int dash_read_header(AVFormatContext *s)
 {
@@ -2178,6 +2179,7 @@ static int dash_read_header(AVFormatContext *s)
 
     return 0;
 fail:
+    dash_close(s);
     return ret;
 }
 
-- 
2.25.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to