Browse Source

avformat/smoothstreamingenc: Add missing "goto fail"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 11 years ago
parent
commit
f2e12f8942
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/smoothstreamingenc.c

+ 1
- 0
libavformat/smoothstreamingenc.c View File

@@ -394,6 +394,7 @@ static int ism_write_header(AVFormatContext *s)
if (!c->has_video && c->min_frag_duration <= 0) {
av_log(s, AV_LOG_WARNING, "no video stream and no min frag duration set\n");
ret = AVERROR(EINVAL);
goto fail;
}
ret = write_manifest(s, 0);



Loading…
Cancel
Save