avformat_find_stream_info: move ret init down from flush codecs.