[FFmpeg-devel] [PATCH 2/2] avformat/hls: Fix probing mpegts audio streams that use probing

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sat Nov 5 19:51:43 EET 2016


On 05.11.2016 18:47, Andreas Cadhalpun wrote:
> On 05.11.2016 17:39, Anssi Hannula wrote:
>> @@ -1981,6 +1986,11 @@ static int hls_read_packet(AVFormatContext *s, AVPacket *pkt)
>>                                              pls->ctx->streams[pls->pkt.stream_index]->time_base,
>>                                              AV_TIME_BASE_Q);
>>  
>> +        /* There may be more situations where this would be useful, but this at least
>> +         * handles newly probed codecs properly (i.e. request_probe by mpegts). */
>> +        if (ist->codecpar->codec_id != st->codecpar->codec_id)
>> +            set_stream_info_from_input_stream(st, pls, ist);
> 
> This has to set:
>             ist->internal->need_context_update = 1;
              ^
Should have been 'st' not 'ist'.

Best regards,
Andreas


More information about the ffmpeg-devel mailing list