coldays

Results 2 comments of coldays

Looks like to me that only happens in VideoDecoder.get_format when constructing it. I assume in between playing different files/streams This proposed change checks decoded frames while playing. It does not...

Alternatively we can listen to the return value of avcodec_send_packet. If it returns AVERROR_INPUT_CHANGED, we need to set up the decoder/demuxer again. This might be more robust