Browse Source

Merge commit '7915e6741dbe1cf3a8781cead3e68a7666de14f4'

* commit '7915e6741dbe1cf3a8781cead3e68a7666de14f4':
  hlsproto: Properly close avio buffer in case of error

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 11 years ago
parent
commit
0c00e734ef
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavformat/hlsproto.c

+ 4
- 2
libavformat/hlsproto.c View File

@@ -121,8 +121,10 @@ static int parse_playlist(URLContext *h, const char *url)
return ret;

read_chomp_line(in, line, sizeof(line));
if (strcmp(line, "#EXTM3U"))
return AVERROR_INVALIDDATA;
if (strcmp(line, "#EXTM3U")) {
ret = AVERROR_INVALIDDATA;
goto fail;
}

free_segment_list(s);
s->finished = 0;


Loading…
Cancel
Save