You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
415 B
16 lines
415 B
6 years ago
|
--- a/libavformat/hls.c
|
||
|
+++ b/libavformat/hls.c
|
||
6 years ago
|
@@ -2062,8 +2062,10 @@
|
||
7 years ago
|
HLSContext *c = s->priv_data;
|
||
|
int ret, i, minplaylist = -1;
|
||
|
|
||
|
- recheck_discard_flags(s, c->first_packet);
|
||
|
- c->first_packet = 0;
|
||
|
+ if (c->first_packet) {
|
||
|
+ recheck_discard_flags(s, 1);
|
||
|
+ c->first_packet = 0;
|
||
|
+ }
|
||
|
|
||
|
for (i = 0; i < c->n_playlists; i++) {
|
||
|
struct playlist *pls = c->playlists[i];
|