]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/hdsenc.c
Merge commit '3ad825793a43253154bed05827f27425fc0757df'
[ffmpeg] / libavformat / hdsenc.c
index 347df83a5166fd7462eb644a9db6c92484c29496..72829f7257a284e418fa15124540162b8c72a689 100644 (file)
@@ -145,7 +145,7 @@ static void hds_free(AVFormatContext *s)
         if (os->ctx && os->ctx_inited)
             av_write_trailer(os->ctx);
         if (os->ctx)
-            av_freep(&os->ctx->pb);
+            avio_context_free(&os->ctx->pb);
         if (os->ctx)
             avformat_free_context(os->ctx);
         av_freep(&os->metadata);
@@ -420,7 +420,6 @@ static int hds_write_header(AVFormatContext *s)
         if (!os->has_video && c->min_frag_duration <= 0) {
             av_log(s, AV_LOG_WARNING,
                    "No video stream in output stream %d and no min frag duration set\n", i);
-            ret = AVERROR(EINVAL);
         }
         os->fragment_index = 1;
         write_abst(s, os, 0);