apply 0005-if-av_read_packet-returns-AVERROR_IO-we-are-done.-ff.patch