mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-18 17:16:53 +00:00
avformat/hls: avformat_find_stream_info when the audio list in the variant
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
aea524e6e3
commit
5d0652916f
@ -1948,7 +1948,7 @@ static int hls_read_header(AVFormatContext *s)
|
||||
* but for other streams we can rely on our user calling avformat_find_stream_info()
|
||||
* on us if they want to.
|
||||
*/
|
||||
if (pls->is_id3_timestamped) {
|
||||
if (pls->is_id3_timestamped || (pls->n_renditions > 0 && pls->renditions[0]->type == AVMEDIA_TYPE_AUDIO)) {
|
||||
ret = avformat_find_stream_info(pls->ctx, NULL);
|
||||
if (ret < 0)
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user