The offset and end_offset options are meant for segment, not for key.
Unified · Split
| @@ -1353,7 +1353,7 @@ static int open_input(HLSContext *c, struct playlist *pls, struct segment *seg, · 1352 unmodified lines | ||
| 1353 | 1353 | if (seg->key_type == KEY_AES_128 || seg->key_type == KEY_SAMPLE_AES) { |
| 1354 | 1354 | if (strcmp(seg->key, pls->key_url)) { |
| 1355 | 1355 | AVIOContext *pb = NULL; |
| 1356 | − if (open_url(pls->parent, &pb, seg->key, &c->avio_opts, opts, NULL) == 0) { | |
| 1356 | + if (open_url(pls->parent, &pb, seg->key, &c->avio_opts, NULL, NULL) == 0) { | |
| 1357 | 1357 | ret = avio_read(pb, pls->key, sizeof(pls->key)); |
| 1358 | 1358 | if (ret != sizeof(pls->key)) { |
| 1359 | 1359 | av_log(pls->parent, AV_LOG_ERROR, "Unable to read key file %s\n", |