avformat/fifo: check for flushed packets and timeshift